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
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
WORKER="pipenv run celery -A celery_worker.celery worker --loglevel=info"
|
||||
|
||||
if [[ `command -v entr` ]]; then
|
||||
find atst | entr -r flask rq worker
|
||||
find atst | entr -r $WORKER
|
||||
else
|
||||
flask rq worker
|
||||
$WORKER
|
||||
fi
|
||||
|
Reference in New Issue
Block a user