prefect always fork a new thread to execute task, ...
# prefect-community
l
prefect always fork a new thread to execute task, is there a way to run task in process instead of thread? As there are some library that handle
signal
by themselves, and due to this limitation
When threads are enabled, this function can only be called from the main thread of the main interpreter; attempting to call it from other threads will cause a
ValueError
exception to be raised.
https://docs.python.org/3/library/signal.html#signal.signal It will fail when execute as task of prefect.