From 4ed1c5b7c4896431dd0126f8e60b05ad1a909d67 Mon Sep 17 00:00:00 2001 From: Joel Falknau Date: Mon, 9 Sep 2024 13:59:43 +1000 Subject: [PATCH] bring test celery in line with project --- tests/celery.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/celery.py b/tests/celery.py index d43e8a52..dfbc2779 100644 --- a/tests/celery.py +++ b/tests/celery.py @@ -1,4 +1,5 @@ import os + from celery import Celery # set the default Django settings module for the 'celery' program. @@ -12,6 +13,10 @@ app = Celery('devauth') # the configuration object to child processes. app.config_from_object('django.conf:settings') +# Automatically try to establish the connection to the AMQP broker on +# Celery startup if it is unavailable. +app.conf.broker_connection_retry_on_startup = True + # setup priorities ( 0 Highest, 9 Lowest ) app.conf.broker_transport_options = { 'priority_steps': list(range(10)), # setup que to have 10 steps