Browse Source

Run flower in Docker container

pull/1972/head
Hironsan 2 years ago
parent
commit
ee0702fa21
1 changed files with 6 additions and 0 deletions
  1. 6
      tools/run.sh

6
tools/run.sh

@ -39,9 +39,15 @@ echo "Starting django"
gunicorn --bind="0.0.0.0:${PORT:-8000}" --workers="${WORKERS:-1}" config.wsgi --timeout=300 &
gunicorn_pid="$!"
echo "Starting celery"
celery --app=config worker --loglevel=INFO --concurrency="${CELERY_WORKERS:-1}" &
celery_pid="$!"
echo "Starting flower"
if [[ -n "${FLOWER_BASIC_AUTH}" ]]; then
celery --app=config flower --basic_auth="${FLOWER_BASIC_AUTH}" &
fi
while :; do
if [[ ! -e "/proc/${celery_pid}" ]]; then
echo "celery crashed" >&2

Loading…
Cancel
Save