From 6cfa1e083c273c3954d0de75338e3aa14a32df1a Mon Sep 17 00:00:00 2001
From: Hinrikus Wolf <hinrikus@fsmpi.rwth-aachen.de>
Date: Sun, 3 Jul 2022 22:26:54 +0200
Subject: [PATCH] fix use of celery

---
 uwsgi-python/tasks/apps/alumnigraph.yml                   | 2 ++
 uwsgi-python/templates/apps/alumnigraph-celery.service.j2 | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/uwsgi-python/tasks/apps/alumnigraph.yml b/uwsgi-python/tasks/apps/alumnigraph.yml
index eff9d1a..29bae3c 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 0bcc872..5d0fc68 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]
-- 
GitLab