Scheduler
/Worker
threads hang when calling sys.exit()
#8644
Labels
Scheduler
/Worker
threads hang when calling sys.exit()
#8644
Describe the issue:
When using the
Scheduler
orWorker
class to start cluster components if the program is exited withsys.exit()
(as is done indask-mpi
) the Python process hangs, likely due to a background thread holding the process open.Minimal Complete Verifiable Example:
I tried to strip things down as far as possible to still reproduce the issue, but I note this doesn't happen when using
asyncio.run(main)
instead of theLoopRunner
that is commonly used in distributed.Anything else we need to know?:
Environment:
2024.4.2
3.11.9
The text was updated successfully, but these errors were encountered: