InvenTree/docker/start_dev_worker.sh

20 lines
304 B
Bash
Raw Normal View History

#!/bin/sh
echo "Starting InvenTree worker..."
cd $INVENTREE_HOME
# Activate virtual environment
source ./dev/env/bin/activate
sleep 5
# Wait for the database to be ready
cd InvenTree
python manage.py wait_for_db
sleep 10
# Now we can launch the background worker process
python manage.py qcluster