-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
the fastAPI application recently started experiencing [CRITICAL] WORKER TIMEOUT errors. despite configuring a 300-second timeout, workers are still being terminated and restarted, causing API instability due to partial database updates (in some cases, only projects are updated, leaving credits and clips empty). this appears to happen during the database update.
current configuration
gunicorn -w $OFFSETS_DB_WEB_CONCURRENCY -t 300 -k uvicorn.workers.UvicornWorker offsets_db_api.main:app --config gunicorn_config.py --access-logfile '-' --error-logfile '-'
even with the 300-second timeout, the logs indicate workers are timing out and restarting:
[2025-04-10 15:07:54 +0000] [655] [CRITICAL] WORKER TIMEOUT (pid:686)
[2025-04-10 15:07:54 +0000] [655] [ERROR] Worker (pid:686) was sent SIGABRT!
[2025-04-10 15:07:54 +0000] [810] [INFO] Booting worker with pid: 810
Metadata
Metadata
Assignees
Labels
No labels