pnpnpn / timeout-decorator

Timeout decorator for Python
MIT License
628 stars 94 forks source link

Problem using celery #62

Open sebastiendarocha opened 4 years ago

sebastiendarocha commented 4 years ago

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.

travischambers commented 10 months ago

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.