Features:
1) Extend worker task time limits (soft: 10800 seconds, hard: 21600 seconds); Fixes: (none); Extra: 1) Update `docker-compose.yml` to reflect new task time limits in Celery command;
This commit is contained in:
parent
0a9a6dfd6c
commit
60240d4cd9
2 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ services:
|
|||
build: .
|
||||
restart: always
|
||||
command: >
|
||||
sh -c "poetry run celery -A evibes worker --loglevel=info --concurrency=4 --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=7200 --time-limit=10800"
|
||||
sh -c "poetry run celery -A evibes worker --loglevel=info --concurrency=4 --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=10800 --time-limit=21600"
|
||||
volumes:
|
||||
- .:/app
|
||||
env_file:
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ app.conf.update(
|
|||
task_reject_on_worker_lost=True,
|
||||
worker_prefetch_multiplier=1,
|
||||
worker_max_tasks_per_child=100,
|
||||
task_soft_time_limit=7200,
|
||||
task_time_limit=10800,
|
||||
task_soft_time_limit=10800,
|
||||
task_time_limit=21600,
|
||||
)
|
||||
|
||||
app.config_from_object("django.conf:settings", namespace="CELERY")
|
||||
|
|
|
|||
Loading…
Reference in a new issue