mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-05 06:36:19 +01:00
Celery 5.5 + shutdown timeouts
This commit is contained in:
@@ -14,6 +14,10 @@ app = Celery('myauth')
|
||||
# Celery startup if it is unavailable.
|
||||
app.conf.broker_connection_retry_on_startup = True
|
||||
|
||||
# Set a hard task execution time of 5 minutes before celery will cold restart
|
||||
app.conf.worker_soft_shutdown_timeout = 300
|
||||
app.conf.worker_enable_soft_shutdown_on_idle = True
|
||||
|
||||
# Using a string here means the worker don't have to serialize
|
||||
# the configuration object to child processes.
|
||||
app.config_from_object('django.conf:settings')
|
||||
|
||||
Reference in New Issue
Block a user