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

Shutdown errors in dev #788

Open
lancetarn opened this issue Apr 1, 2024 · 0 comments
Open

Shutdown errors in dev #788

lancetarn opened this issue Apr 1, 2024 · 0 comments

Comments

@lancetarn
Copy link
Contributor

Python 3.12, scout_apm_python 3.1.0
Looks like there are instances where the Core Agent doesn't quite shut down gracefully. I've seen this happen during server reloads as well as django-admin commands (which is probably a different question altogether). This might not be a problem, exactly, but it spews stacktraces.

Exception ignored in atexit callback: <function shutdown at 0x104ed9bc0>
Traceback (most recent call last):
  File "...lib/python3.12/site-packages/scout_apm/core/__init__.py", line 92, in shutdown
    CoreAgentSocketThread.wait_until_drained(
  File "...lib/python3.12/site-packages/scout_apm/core/agent/socket.py", line 62, in wait_until_drained
    cls.ensure_started()
  File "...lib/python3.12/site-packages/scout_apm/core/threading.py", line 23, in ensure_started
    cls._instance.start()
  File "...lib/python3.12/threading.py", line 992, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't create new thread at interpreter shutdown

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