python芹菜max-tasks-per-child-setting默认值

python芹菜max-tasks-per-child-setting默认值,第1张

概述我正在使用芹菜,我想使用 max-tasks-per-child-setting 因为一些芹菜过程获得了很高的内存使用率. 我想在更改之前找到此设置的默认值,但我无法找到该信息. 我看了here,但我不想把它设置为1,因为我不希望它重新启动每个任务. 默认情况下没有限制 http://celery.readthedocs.org/en/latest/configuration.html#celer 我正在使用芹菜,我想使用 max-tasks-per-child-setting
因为一些芹菜过程获得了很高的内存使用率.

我想在更改之前找到此设置的默认值,但我无法找到该信息.

我看了here,但我不想把它设置为1,因为我不希望它重新启动每个任务.

解决方法 默认情况下没有限制

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

您可以从defaults.py中查看所有默认配置值

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

>>> from celery import conf>>> conf.CELERYD_MAX_TASKS_PER_CHILD is NoneTrue
总结

以上是内存溢出为你收集整理的python芹菜max-tasks-per-child-setting默认值全部内容,希望文章能够帮你解决python芹菜max-tasks-per-child-setting默认值所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1207186.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-04
下一篇 2022-06-04

发表评论

登录后才能评论

评论列表(0条)

保存