celery: daemonic processes are not allowed to have children

前端 未结 4 1709
走了就别回头了
走了就别回头了 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:42

    I got a similar Error trying to call a multiprocessing method from a Celery task in django. I solved using billiard instead of multiprocessing

    import billiard as multiprocessing
    

    Hope it helps.

提交回复
热议问题