atst/script/dev_queue
dandds d7478e322a Use Celery instead of RQ.
Celery provides a more robust set of queueing options for both tasks and
worker processes. Updates include:
- infrastructure necessary to run Celery, including celery entrypoint
- backgrounded functions are now imported directly from atst.jobs
- update tests as-needed
- update kubernetes worker pod command
2019-08-29 09:33:47 -04:00

14 lines
235 B
Bash
Executable File

#!/bin/bash
# script/dev_queue: Run the queue with entr if available
set -e
WORKER="pipenv run celery -A celery_worker.celery worker --loglevel=info"
if [[ `command -v entr` ]]; then
find atst | entr -r $WORKER
else
$WORKER
fi