Skip to content
Snippets Groups Projects
Commit 6778e4bb authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'bugfix/uwsgi-celery-beat-scheduler' into 'master'

Set correct scheduler in celery beat when run in dev mode

See merge request !516
parents d807a1b7 cedf3588
No related branches found
No related tags found
1 merge request!516Set correct scheduler in celery beat when run in dev mode
Pipeline #6273 passed
......@@ -537,7 +537,9 @@ if _settings.get("dev.uwsgi.celery", True):
concurrency = _settings.get("celery.uwsgi.concurrency", 2)
UWSGI.setdefault("attach-daemon", [])
UWSGI["attach-daemon"].append(f"celery -A aleksis.core worker --concurrency={concurrency}")
UWSGI["attach-daemon"].append("celery -A aleksis.core beat")
UWSGI["attach-daemon"].append(
"celery -A aleksis.core beat --scheduler django_celery_beat.schedulers:DatabaseScheduler"
)
PWA_APP_NAME = lazy_preference("general", "title")
PWA_APP_DESCRIPTION = lazy_preference("general", "description")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment