Skip to content

Uvicorn: use --uds instead of --fd 0 to enable multi-worker support#10481

Open
azhavoro wants to merge 2 commits intodevelopfrom
az/uvicorn
Open

Uvicorn: use --uds instead of --fd 0 to enable multi-worker support#10481
azhavoro wants to merge 2 commits intodevelopfrom
az/uvicorn

Conversation

@azhavoro
Copy link
Copy Markdown
Contributor

Supervisord socket delegation via --fd is incompatible with Uvicorn's --workers argument (forces TCP fallback). Moved socket creation to Uvicorn internal manager via --uds to allow multiple workers.

Motivation and context

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Supervisord socket delegation via `--fd` is incompatible with Uvicorn's `--workers`
argument (forces TCP fallback). Moved socket creation to Uvicorn internal
manager via `--uds` to allow multiple workers.
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@azhavoro azhavoro requested a review from SpecLad as a code owner April 17, 2026 04:49
Comment thread cvat/settings/base.py
EVENTS_LOCAL_DB_FILE = Path(
EVENTS_LOCAL_DB_ROOT,
os.getenv("CVAT_EVENTS_LOCAL_DB_FILENAME", "events.db"),
f"events_{os.getpid()}.db",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this result in a loss of buffered events if the server gets killed and restarted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants