diff --git a/script/rq_worker b/script/rq_worker new file mode 100755 index 00000000..7b5a0276 --- /dev/null +++ b/script/rq_worker @@ -0,0 +1,11 @@ +#!/bin/bash + +# script/rq_worker: Launch the Flask-RQ worker + +source "$(dirname "${0}")"/../script/include/global_header.inc.sh + +# Before starting the server, apply any pending migrations to the DB +migrate_db + +# Launch the worker +run_command "flask rq worker"