From 9a37dcf6bb14c62f16d631347ce07847f34c603d Mon Sep 17 00:00:00 2001 From: wd0517 Date: Fri, 10 Jan 2025 06:26:33 +0000 Subject: [PATCH] fix(celery): set name for celery worker --- backend/supervisord.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/supervisord.conf b/backend/supervisord.conf index 99e8bbfc..d6b1d316 100644 --- a/backend/supervisord.conf +++ b/backend/supervisord.conf @@ -3,7 +3,7 @@ nodaemon=true logfile=/var/log/supervisord.log [program:celery_worker] -command=celery -A app.celery worker -Q default --concurrency=5 --loglevel=INFO --logfile=/var/log/celery_worker.log +command=celery -A app.celery worker -n worker-default@%%h -Q default --concurrency=5 --loglevel=INFO --logfile=/var/log/celery_worker.log directory=/app stdout_logfile=/var/log/celery_worker_supervisor.log stdout_logfile_maxbytes=52428800 @@ -11,7 +11,7 @@ redirect_stderr=true autorestart=true [program:evaluation_worker] -command=celery -A app.celery worker -Q evaluation --pool=solo --loglevel=INFO --logfile=/var/log/evaluation_worker.log +command=celery -A app.celery worker -n worker-evaluation@%%h -Q evaluation --pool=solo --loglevel=INFO --logfile=/var/log/evaluation_worker.log directory=/app stdout_logfile=/var/log/evaluation_worker_supervisor.log stdout_logfile_maxbytes=52428800