celery: daemonic processes are not allowed to have children

前端 未结 4 1683
走了就别回头了
走了就别回头了 2021-02-19 03:32

In Python (2.7) I try to create processes (with multiprocessing) in a celery task (celery 3.1.17) but it gives the error:

daemonic processes are not allowed to h         


        
4条回答
  •  孤独总比滥情好
    2021-02-19 03:58

    If you are using a submodule/library with multiprocessing already baked in, it may make more sense to set the -P threads argument of the worker:

    celery worker -P threads
    

    https://github.com/celery/celery/issues/4525#issuecomment-566503932

提交回复
热议问题