Name the celery workers pvcworkerd@<hostname>

This commit is contained in:
Joshua Boniface 2023-11-16 11:43:17 -05:00
parent eb1d61a8b9
commit 0d818017e8
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ CELERY_BIN="$( which celery )"
# app arguments work in a non-backwards-compatible way with Celery 5. # app arguments work in a non-backwards-compatible way with Celery 5.
case "$( cat /etc/debian_version )" in case "$( cat /etc/debian_version )" in
10.*) 10.*)
CELERY_ARGS="worker --app pvcapid.flaskapi.celery --concurrency 3 --hostname $(hostname -s) --queues $(hostname -s) --loglevel INFO" CELERY_ARGS="worker --app pvcapid.flaskapi.celery --concurrency 3 --hostname pvcworkerd@$(hostname -s) --queues $(hostname -s) --loglevel INFO"
;; ;;
*) *)
CELERY_ARGS="--app pvcapid.flaskapi.celery worker --concurrency 3 --hostname $(hostname -s) --queues $(hostname -s) --loglevel INFO" CELERY_ARGS="--app pvcapid.flaskapi.celery worker --concurrency 3 --hostname pvcworkerd@$(hostname -s) --queues $(hostname -s) --loglevel INFO"
;; ;;
esac esac