mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-16 14:47:10 +03:00
17 lines
369 B
Bash
17 lines
369 B
Bash
#!/bin/bash
|
|
|
|
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 \"${REDIS_URL}\" flower --basic_auth=\"${CELERY_FLOWER_USER}:${CELERY_FLOWER_PASSWORD}\""
|