mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-08 20:10:17 +02:00
Celery 5.5 + shutdown timeouts
This commit is contained in:
parent
57b3841293
commit
af87da876b
@ -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')
|
||||
|
@ -40,7 +40,7 @@ dynamic = [
|
||||
dependencies = [
|
||||
"bcrypt",
|
||||
"beautifulsoup4",
|
||||
"celery>=5.4,<6",
|
||||
"celery>=5.5,<6",
|
||||
"celery-once>=3.0.1",
|
||||
"django>=5.1,<5.2",
|
||||
"django-bootstrap-form",
|
||||
|
Loading…
x
Reference in New Issue
Block a user