timeout-decorator
timeout-decorator copied to clipboard
Problem using celery
Hello,
I'm using timeout_decorator with celery, and it fails displaying this error:
daemonic processes are not allowed to have children
According to this https://stackoverflow.com/a/54917626/6684009 it's related to a limitation in the multiprocess. Celery has forked this library under the name "billiard" which doesn't have this limitation.
This is very late, but if i start my celery worker with -P threads
and add use_signals=False
to my timeout decorator, i was able to get this to work.