2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 03:56:43 +00:00
InvenTree/docker/start_worker.sh

16 lines
227 B
Bash

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