Add script to clear worker queue

This commit is contained in:
rubenwardy 2024-03-03 01:00:51 +00:00
parent ffdd0bbafd
commit 028452c2ca

8
utils/worker_clear.sh Executable file

@ -0,0 +1,8 @@
#!/bin/bash
# Clear worker queue
set -e
. "${BASH_SOURCE%/*}/common.sh"
docker exec -it "$(container app)" sh -c "FLASK_CONFIG=../config.cfg celery -A app.tasks.celery purge -f"