Add celery parameters to disable gossip, heartbeat, mingle (#907)

This commit is contained in:
Ildar Iskhakov 2022-11-28 14:18:27 +08:00 committed by GitHub
parent c23de808cb
commit 09bf0ee3d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,5 +36,14 @@ CELERY_ARGS=(
if [[ $CELERY_WORKER_BEAT_ENABLED = True ]]; then
CELERY_ARGS+=("--beat")
fi
if [[ $CELERY_WORKER_WITHOUT_MINGLE = True ]]; then
CELERY_ARGS+=("--without-mingle")
fi
if [[ $CELERY_WORKER_WITHOUT_GOSSIP = True ]]; then
CELERY_ARGS+=("--without-gossip")
fi
if [[ $CELERY_WORKER_WITHOUT_HEARTBEAT = True ]]; then
CELERY_ARGS+=("--without-heartbeat")
fi
celery "${CELERY_ARGS[@]}"