I have a program with multiple threads, each of them being a while True: (...) time.sleep(x)
loop. I have set seconds_frozen
to a value higher than the longest sleep
but still get dumps from hanging_threads
, for example:
--------------------Thread 139845980632832--------------------
File "/usr/lib/python3.5/threading.py", line 882, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "webserver.py", line 139, in check_source_changes
suspend_for("10s")
File "webserver.py", line 151, in suspend_for
time.sleep(sleeptime)
In the case above, sleeptime
is 10
and hanging_threads
was initialized with
monitoring_thread = start_monitoring(seconds_frozen=700, tests_per_second=1)
Is there something else I should do?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too