InvenTree/docker/start_worker.sh
2021-04-18 15:24:33 +10:00

15 lines
231 B
Bash

#!/bin/sh
echo "Starting InvenTree worker..."
sleep 5
# Wait for the database to be ready
cd $INVENTREE_MNG_DIR
python manage.py wait_for_db
sleep 10
# Now we can launch the background worker process
python manage.py qcluster