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.
14 lines
316 B
Bash
14 lines
316 B
Bash
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -o errexit
|
||
|
set -o nounset
|
||
|
|
||
2 years ago
|
# Use watchfiles during development
|
||
|
CELERY_WORKER_WATCH=${CELERY_WORKER_WATCH:-}
|
||
|
|
||
2 years ago
|
if [ -n "${CELERY_WORKER_WATCH}" ]; then
|
||
2 years ago
|
watchfiles --filter python 'celery -A main.celery worker --loglevel=info'
|
||
|
else
|
||
|
exec python -m celery -A main.celery worker --loglevel=info
|
||
|
fi
|