Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

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

Description

@jeyakumar8

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions