Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopped abruptly when the URL is down / not reachable #119

Open
jeyakumar8 opened this issue Jun 3, 2021 · 0 comments
Open

Stopped abruptly when the URL is down / not reachable #119

jeyakumar8 opened this issue Jun 3, 2021 · 0 comments

Comments

@jeyakumar8
Copy link

Hi,

we are using signalfx-python library to send metrics.

Our sample code

Client = <client building with Url and token client.start() client.stop()

Issue:
whenever any error happened from the URL request. Our whole application stops completly.

Diving deep to the issue, found that original main thread is going in to _wait_for_tstate_lock state().

attaching exception trace:
File "scheduler.py", line 33, in send_heartbeat signalfx_metrics.send_availability_metric() File "/Users/jgovindaraj/Documents/Projects/signalfxteams/scripts/services/signalfx_metrics.py", line 39, in send_availability_metric client.stop() File "/Users/jgovindaraj/Documents/Projects/signalfxteams/scripts/signalfx/ingest.py", line 214, in stop self._send_thread.join() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 1011, in join self._wait_for_tstate_lock() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 1027, in _wait_for_tstate_lock elif lock.acquire(block, timeout):

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant