You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: signal only works in main thread of the main interpreter
I haven't dug into the logic of how this is used and/or why it's needed. Maybe we should only do this if we are in the main thread?
The text was updated successfully, but these errors were encountered:
Thanks for raising this! That was added because we were seeing hangs during shutdown without it (see dask/distributed#8644).
You might be right that we only need to do this if we are running in the main thread. I've opened #668 to do this. Would you mind installing the version from that PR and trying it out with Prefect to see if it a) solves your problem and b) doesn't cause the hangs we were seeing previously.
# Install the PR version
pip install git+https://github.com/dask/dask-jobqueue.git@refs/pull/668/merge
If you load dask_jobqueue from a thread (for example, if using with
prefect
), you will get errors due to the signal.Code:
dask-jobqueue/dask_jobqueue/runner.py
Line 18 in a88e073
Partial trace:
I haven't dug into the logic of how this is used and/or why it's needed. Maybe we should only do this if we are in the main thread?
The text was updated successfully, but these errors were encountered: