mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-24 18:52:25 +08:00
Force the Celery workers to run only one task at a time
This forces the tasks to be run serially.
This commit is contained in:
@@ -55,6 +55,8 @@ celery_configs = {
|
||||
name[7:]: getattr(conf, name)
|
||||
for name in dir(conf) if name.startswith("celery_")
|
||||
}
|
||||
# Only allow a single process so that tasks are always serial per worker
|
||||
celery_configs["worker_concurrency"] = 1
|
||||
celery_app.conf.update(**celery_configs)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user