InvenTree/docker/start_worker.sh

19 lines
285 B
Bash

#!/bin/sh
echo "Starting InvenTree worker..."
# Activate virtual environment
source ./env/bin/activate
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