You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
304 B
Bash
19 lines
304 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
worker_ready() {
|
|
celery -A main.celery inspect ping
|
|
}
|
|
|
|
until worker_ready; do
|
|
>&2 echo 'Celery workers not available'
|
|
sleep 1
|
|
done
|
|
>&2 echo 'Celery workers is available'
|
|
|
|
exec celery flower \
|
|
--app=main.celery \
|
|
--broker="${CELERY_BROKER_URL}"
|