Skip to content

Fix Cosmos container startup race during local Docker boot - #1081

Merged
Paul Lizer (paullizer) merged 4 commits into
microsoft:Developmentfrom
Xeelee33:fix-docker-conflict
Jul 30, 2026
Merged

Paul Lizer (paullizer) merged 4 commits into
microsoft:Developmentfrom
Xeelee33:fix-docker-conflict

Conversation

@chadpalmer

Copy link
Copy Markdown
Contributor

Summary

  • Fixes a local Docker startup failure where multiple gunicorn workers could race while creating first-run Cosmos containers.
  • Adds conflict recovery around Cosmos create_container_if_not_exists so a worker re-reads and returns the container if another worker created it first.
  • Adds focused regression coverage and fix documentation.
  • Updates release notes under v0.250.062.

Validation

  • git diff --check upstream/Development...HEAD
  • python -m py_compile application/single_app/config.py functional_tests/test_cosmos_container_conflict_recovery.py
  • python functional_tests/test_cosmos_container_conflict_recovery.py

Notes

  • Branch was merged with latest upstream/Development.
  • No route, UI, or browser-rendering files are changed in the final PR delta.
  • Full Docker startup smoke test was not run locally as part of this validation, but local Docker instance did start up successfully after the updates.

@chadpalmer

Chad Palmer (chadpalmer) commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Bionic711 Paul Lizer (@paullizer) This PR fixes a race condition for local docker instances where the gunicorn workers trip over each other in creating the first-run Cosmos containers.

@paullizer

Copy link
Copy Markdown
Contributor

I like this. Nice Chat! I also appreciated the other issues on UX and 508. Thank you!

@paullizer
Paul Lizer (paullizer) merged commit 68bf7c3 into microsoft:Development Jul 30, 2026
12 checks passed
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