Worker params

This commit is contained in:
Luciano Gervasoni
2025-07-15 10:28:51 +02:00
parent a38e2bc5d1
commit 06ded0b37d
2 changed files with 5 additions and 5 deletions

View File

@@ -7,6 +7,6 @@ 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 & \ 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 & \ while true; do python manage.py scheduler_worker -v 3 --traceback default high 2>> /opt/logs/warning.log; sleep 30; done & \
python manage.py scheduler_worker -v 3 --traceback --worker-ttl 86400 low >> /opt/logs/warning.log 2>&1 while true; do python manage.py scheduler_worker -v 3 --traceback low 2>> /opt/logs/warning.log; sleep 30; done & \
fi fi

View File

@@ -88,8 +88,8 @@
"result_ttl": 86400, "result_ttl": 86400,
"cron_string": null, "cron_string": null,
"scheduled_time": "2025-01-01T00:00:00+00:00", "scheduled_time": "2025-01-01T00:00:00+00:00",
"interval": 1, "interval": 12,
"interval_unit": "days", "interval_unit": "hours",
"successful_runs": 0, "successful_runs": 0,
"failed_runs": 0, "failed_runs": 0,
"last_successful_run": null, "last_successful_run": null,
@@ -142,7 +142,7 @@
"result_ttl": 86400, "result_ttl": 86400,
"cron_string": null, "cron_string": null,
"scheduled_time": "2025-01-01T00:00:00+00:00", "scheduled_time": "2025-01-01T00:00:00+00:00",
"interval": 4, "interval": 8,
"interval_unit": "weeks", "interval_unit": "weeks",
"successful_runs": 0, "successful_runs": 0,
"failed_runs": 0, "failed_runs": 0,