From e54579df1c0e9a191b2362e9708d1eaae0e24ee6 Mon Sep 17 00:00:00 2001 From: Michael Bunsen Date: Wed, 19 Nov 2025 18:01:06 -0800 Subject: [PATCH 1/2] fix: increase the length a job can run in RabbitMQ --- .envs/.local/.django | 1 + .envs/.production/.django-example | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.envs/.local/.django b/.envs/.local/.django index e646e46eb..2a1ff1c23 100644 --- a/.envs/.local/.django +++ b/.envs/.local/.django @@ -21,6 +21,7 @@ CELERY_BROKER_URL=amqp://rabbituser:rabbitpass@rabbitmq:5672/ CELERY_RESULT_BACKEND=rpc:// # Use RabbitMQ for results backend RABBITMQ_DEFAULT_USER=rabbituser RABBITMQ_DEFAULT_PASS=rabbitpass +RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit consumer_timeout 60480000 # Attempting to keep Flower from showing workers as offline # FLOWER_BROKER_API=REDIS_URL diff --git a/.envs/.production/.django-example b/.envs/.production/.django-example index f502030cc..665e983f6 100644 --- a/.envs/.production/.django-example +++ b/.envs/.production/.django-example @@ -24,6 +24,13 @@ REDIS_URL=redis://redis:6379/0 CELERY_FLOWER_USER= CELERY_FLOWER_PASSWORD= +# RabbitMQ +CELERY_BROKER_URL= +CELERY_RESULT_BACKEND=rpc:// # Use RabbitMQ for results backend +RABBITMQ_DEFAULT_USER= +RABBITMQ_DEFAULT_PASS= +RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit consumer_timeout 60480000 + # Sendgrid SENDGRID_API_KEY= From eb30cf19a2c04ffbf7a5e220f2033f085aba4e90 Mon Sep 17 00:00:00 2001 From: Michael Bunsen Date: Wed, 19 Nov 2025 18:21:56 -0800 Subject: [PATCH 2/2] fix: increase timeout to 4 days to match Celery setting --- .envs/.local/.django | 2 +- .envs/.production/.django-example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.envs/.local/.django b/.envs/.local/.django index 2a1ff1c23..29780e680 100644 --- a/.envs/.local/.django +++ b/.envs/.local/.django @@ -21,7 +21,7 @@ CELERY_BROKER_URL=amqp://rabbituser:rabbitpass@rabbitmq:5672/ CELERY_RESULT_BACKEND=rpc:// # Use RabbitMQ for results backend RABBITMQ_DEFAULT_USER=rabbituser RABBITMQ_DEFAULT_PASS=rabbitpass -RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit consumer_timeout 60480000 +RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit consumer_timeout 604800000 # Attempting to keep Flower from showing workers as offline # FLOWER_BROKER_API=REDIS_URL diff --git a/.envs/.production/.django-example b/.envs/.production/.django-example index 665e983f6..a54d4ae60 100644 --- a/.envs/.production/.django-example +++ b/.envs/.production/.django-example @@ -29,7 +29,7 @@ CELERY_BROKER_URL= CELERY_RESULT_BACKEND=rpc:// # Use RabbitMQ for results backend RABBITMQ_DEFAULT_USER= RABBITMQ_DEFAULT_PASS= -RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit consumer_timeout 60480000 +RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit consumer_timeout 604800000 # Sendgrid SENDGRID_API_KEY=