Workers fix

This commit is contained in:
Luciano Gervasoni
2025-07-15 01:04:57 +02:00
parent 6612a50d13
commit 9d79a4e5c4

View File

@@ -6,5 +6,5 @@ if [ "${DJANGO_DEBUG}" = true ] | [ "${DJANGO_DEBUG}" == "True" ]; then
else
echo "Running in PROD mode"
# Multi-worker
gunicorn core.wsgi:application --bind 0.0.0.0:8000 --timeout 86400 & python manage.py scheduler_worker --worker-ttl 86400 default high & python manage.py scheduler_worker --worker-ttl 86400 low
gunicorn core.wsgi:application --bind 0.0.0.0:8000 --timeout 86400 & python manage.py scheduler_worker -v 2 --fork-job-execution --worker-ttl 86400 default high & python manage.py scheduler_worker -v 2 --fork-job-execution --worker-ttl 86400 low
fi