config: reduce max-task-per-child to 20
This commit is contained in:
parent
a831986529
commit
bc9d34cbec
5 changed files with 5 additions and 5 deletions
|
|
@ -397,7 +397,7 @@ celery.broker_url = redis://localhost:6379/8
|
|||
#celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
|
||||
|
||||
; maximum tasks to execute before worker restart
|
||||
celery.max_tasks_per_child = 100
|
||||
celery.max_tasks_per_child = 20
|
||||
|
||||
; tasks will never be sent to the queue, but executed locally instead.
|
||||
celery.task_always_eager = false
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ celery.broker_url = redis://localhost:6379/8
|
|||
#celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
|
||||
|
||||
; maximum tasks to execute before worker restart
|
||||
celery.max_tasks_per_child = 100
|
||||
celery.max_tasks_per_child = 20
|
||||
|
||||
; tasks will never be sent to the queue, but executed locally instead.
|
||||
celery.task_always_eager = false
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ In order to install and configure Celery, follow these steps:
|
|||
celery.broker_url = redis://localhost:6379/8
|
||||
|
||||
# maximum tasks to execute before worker restart
|
||||
celery.max_tasks_per_child = 100
|
||||
celery.max_tasks_per_child = 20
|
||||
|
||||
## tasks will never be sent to the queue, but executed locally instead.
|
||||
celery.task_always_eager = false
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ base_celery_config = {
|
|||
'result_expires': 60 * 60 * 24,
|
||||
'result_persistent': True,
|
||||
'imports': imports,
|
||||
'worker_max_tasks_per_child': 100,
|
||||
'worker_max_tasks_per_child': 20,
|
||||
'accept_content': ['json_ext', 'json'],
|
||||
'task_serializer': 'json_ext',
|
||||
'result_serializer': 'json_ext',
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ celery.broker_url = redis://localhost:6379/8
|
|||
#celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
|
||||
|
||||
; maximum tasks to execute before worker restart
|
||||
celery.max_tasks_per_child = 100
|
||||
celery.max_tasks_per_child = 20
|
||||
|
||||
; tasks will never be sent to the queue, but executed locally instead.
|
||||
celery.task_always_eager = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue