Skip to content

Gunicorn workers timeout despite extended timeout settings #161

@andersy005

Description

@andersy005

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions