0

I'm trying to run a Python script in which it uses multiple CPU cores by "pool.map of multiprocessing". When I run the script through celery it complains that "daemonic processes are not allowed to have children". I use the command below for Celery:

sudo celery -A script.celery worker -f LOGFILE -l INFO&

I don't know how to make celery call multiple CPU cores for the script.

Erol
  • 19
  • 3
  • Check out this question https://stackoverflow.com/questions/30624290/celery-daemonic-processes-are-not-allowed-to-have-children – nenadp Jul 10 '21 at 11:51
  • Interestingly when I don't protect the pool.map by "if __name__ == '__main__'", and also when I use --pool=solo for the celery it works nicely. – Erol Jul 10 '21 at 14:32

0 Answers0