Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am using celery and i want to use the max-tasks-per-child-setting because some of the celery process get high memory usage.

I am trying to find the default value for this setting before i change but i cant find that information.

I looked here but i dont want to set it to 1 because i dont want it restarted every task.

like image 440
yossi Avatar asked Apr 18 '12 08:04

yossi


1 Answers

By default there is no limit

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

You can check out all default config 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
like image 84
mher Avatar answered Sep 21 '22 11:09

mher