From 028452c2ca37e514a0dd799619acd228b9f117ca Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 3 Mar 2024 01:00:51 +0000 Subject: [PATCH] Add script to clear worker queue --- utils/worker_clear.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 utils/worker_clear.sh diff --git a/utils/worker_clear.sh b/utils/worker_clear.sh new file mode 100755 index 00000000..dc4aac26 --- /dev/null +++ b/utils/worker_clear.sh @@ -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"