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
14 lines
235 B
Bash
Executable File
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
|