Python celery max-tasks-per-child-setting default

I use celery and I want to use max-tasks-per-child-setting because some of the celery process gets high memory.

I am trying to find the default value for this parameter before changing, but I can not find this information.

I looked here , but I do not want to set it to 1 , because I do not want it to restart every task.

+6
source share
1 answer

There are no restrictions by default.

http://celery.readthedocs.org/en/latest/configuration.html#celeryd-max-tasks-per-child

You can check all default configuration values ​​from defaults.py

https://github.com/celery/celery/blob/master/celery/app/defaults.py

 >>> from celery import conf >>> conf.CELERYD_MAX_TASKS_PER_CHILD is None True 
+8
source

Source: https://habr.com/ru/post/913500/


All Articles