feat: watchfiles for celery beat/worker

This commit is contained in:
goatwu1993 2022-10-30 18:39:18 +08:00
parent f2f8cb6964
commit 9f70cde194
2 changed files with 4 additions and 7 deletions

View File

@ -5,4 +5,4 @@ set -o nounset
rm -f './celerybeat.pid' rm -f './celerybeat.pid'
exec celery -A config.celery_app beat -l INFO exec watchfiles celery.__main__.main --args '-A config.celery_app beat -l INFO'

View File

@ -3,9 +3,6 @@
set -o errexit set -o errexit
set -o nounset set -o nounset
exec watchfiles celery.__.main__.main \
exec celery \ --args \
-A config.celery_app \ "-A config.celery_app -b \"${CELERY_BROKER_URL}\" flower --basic_auth=\"${CELERY_FLOWER_USER}:${CELERY_FLOWER_PASSWORD}\""
-b "${CELERY_BROKER_URL}" \
flower \
--basic_auth="${CELERY_FLOWER_USER}:${CELERY_FLOWER_PASSWORD}"