7

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.

Community
  • 1
  • 1
yossi
  • 12,945
  • 28
  • 84
  • 110

1 Answers1

10

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
mher
  • 10,508
  • 2
  • 35
  • 27