InvenTree/docker/start_prod_worker.sh

14 lines
232 B
Bash
Raw Normal View History

2021-04-10 05:08:10 +00:00
#!/bin/sh
echo "Starting InvenTree worker..."
sleep 5
# Wait for the database to be ready
2021-04-10 12:35:10 +00:00
cd $INVENTREE_MNG_DIR
2021-07-02 03:07:42 +00:00
python3 manage.py wait_for_db
2021-04-10 05:08:10 +00:00
sleep 10
# Now we can launch the background worker process
2021-07-02 03:07:42 +00:00
python3 manage.py qcluster