Workers ttl

This commit is contained in:
Luciano Gervasoni
2025-07-14 23:37:48 +02:00
parent 623dfbf95a
commit 6c88759e7b
3 changed files with 6 additions and 5 deletions

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 600 & python manage.py scheduler_worker default high & python manage.py scheduler_worker low
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
fi