diff --git a/uwsgi-python/tasks/apps/alumnigraph.yml b/uwsgi-python/tasks/apps/alumnigraph.yml index eff9d1a89765c069f08094ab7aaf35e8cfbd976a..29bae3c7de2d4a2fc97fa53a3d98bdf941e9f1ab 100644 --- a/uwsgi-python/tasks/apps/alumnigraph.yml +++ b/uwsgi-python/tasks/apps/alumnigraph.yml @@ -30,6 +30,8 @@ - reload systemd service files - "restart uwsgi instance {{app.instance}}" +- meta: flush_handlers + - name: ensure the celery service is enabled service: name: "{{app_name}}-celery" diff --git a/uwsgi-python/templates/apps/alumnigraph-celery.service.j2 b/uwsgi-python/templates/apps/alumnigraph-celery.service.j2 index 0bcc872245e6f6b635598c93e5172a51815dd6db..5d0fc6887a6edb0215a08999510a7a2e9480be46 100644 --- a/uwsgi-python/templates/apps/alumnigraph-celery.service.j2 +++ b/uwsgi-python/templates/apps/alumnigraph-celery.service.j2 @@ -7,7 +7,7 @@ User={{ app_user }} Group={{ app_group }} WorkingDirectory={{ app_path }} Environment=VIRTUAL_ENV="{{ app_path }}" -ExecStart={{ app_venv }}/bin/celery -A app.celery worker --loglevel=DEBUG --concurrency={{ alumni_graph_celery_concurrency }} +ExecStart={{ app_venv }}/bin/celery -A server.celery worker --loglevel=DEBUG --concurrency={{ alumni_graph_celery_concurrency }} Restart=always [Install]