timeout-decorator icon indicating copy to clipboard operation
timeout-decorator copied to clipboard

Problem using celery

Open sebastiendarocha opened this issue 4 years ago • 1 comments

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.

sebastiendarocha avatar Jun 25 '20 14:06 sebastiendarocha

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.

travischambers avatar Jan 10 '24 21:01 travischambers