Merge branch 'celery-broker-connection' into 'master'

Prepare our Celery config for Celery 6

See merge request allianceauth/allianceauth!1532
This commit is contained in:
Ariel Rin 2023-10-07 04:38:21 +00:00
commit efc7475228

View File

@ -13,6 +13,10 @@ app = Celery('{{ project_name }}')
# the configuration object to child processes. # the configuration object to child processes.
app.config_from_object('django.conf:settings') 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 ) # setup priorities ( 0 Highest, 9 Lowest )
app.conf.broker_transport_options = { app.conf.broker_transport_options = {
'priority_steps': list(range(10)), # setup que to have 10 steps 'priority_steps': list(range(10)), # setup que to have 10 steps