Update start in local flower

Flower needs to start only after the celery workers come online. otherwise one will see errors like `inspect method failed` etc
This commit is contained in:
Arnav Choudhury 2024-04-19 21:41:58 +05:30
parent 83d3e6f83d
commit 9d87c5a726

View File

@ -3,6 +3,14 @@
set -o errexit
set -o nounset
until timeout 10 celery -A config.celery_app inspect ping; do
>&2 echo "Celery workers not available"
done
echo 'Starting flower'
exec watchfiles --filter python celery.__main__.main \
--args \
"-A config.celery_app -b \"${CELERY_BROKER_URL}\" flower --basic_auth=\"${CELERY_FLOWER_USER}:${CELERY_FLOWER_PASSWORD}\""