Worker logs

This commit is contained in:
Luciano Gervasoni
2025-07-15 10:04:13 +02:00
parent 5a33012a64
commit a38e2bc5d1
2 changed files with 4 additions and 2 deletions

View File

@@ -6,5 +6,7 @@ if [ "${DJANGO_DEBUG}" = true ] | [ "${DJANGO_DEBUG}" == "True" ]; then
else else
echo "Running in PROD mode" echo "Running in PROD mode"
# Multi-worker # Multi-worker
gunicorn core.wsgi:application --bind 0.0.0.0:8000 --timeout 86400 & python manage.py scheduler_worker -v 2 --traceback --worker-ttl 86400 default high & python manage.py scheduler_worker -v 2 --traceback --worker-ttl 86400 low gunicorn core.wsgi:application --bind 0.0.0.0:8000 --timeout 86400 & \
python manage.py scheduler_worker -v 3 --traceback --worker-ttl 86400 default high >> /opt/logs/warning.log 2>&1 & \
python manage.py scheduler_worker -v 3 --traceback --worker-ttl 86400 low >> /opt/logs/warning.log 2>&1
fi fi

View File

@@ -219,7 +219,7 @@
"callable_args": [], "callable_args": [],
"callable_kwargs": [], "callable_kwargs": [],
"enabled": false, "enabled": false,
"queue": "default", "queue": "low",
"repeat": null, "repeat": null,
"at_front": false, "at_front": false,
"timeout": 3600, "timeout": 3600,