diff --git a/docker-compose.yml b/docker-compose.yml index 5d2fde7a..2dcc3371 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,8 +51,8 @@ services: --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 - --soft-time-limit=1800 - --time-limit=3600" + --soft-time-limit=3600 + --time-limit=7200" volumes: - .:/app env_file: diff --git a/evibes/celery.py b/evibes/celery.py index da158a25..d977c273 100644 --- a/evibes/celery.py +++ b/evibes/celery.py @@ -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=1800, - task_time_limit=3600, + task_soft_time_limit=3600, + task_time_limit=7200, ) app.config_from_object("django.conf:settings", namespace="CELERY")