Skip to content

docs: pass manage_lifespan=False to every app that shares a container - #80

Merged
lesnik512 merged 1 commit into
mainfrom
docs/shared-container-owner
Oct 17, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
docs/shared-container-owner

Conversation

@lesnik512

Copy link
Copy Markdown
Member

The README said exactly one app sharing a container should own its lifespan. That conflicts with the modern-di docs (Lifecycle, "Apps that share a container need one owner", and the shared-container recipe): an app left at the default still closes the root while the other app is draining.

The section now says to pass manage_lifespan=False to every app that shares the container and open and close it yourself, and links the recipe.

@lesnik512
lesnik512 merged commit 7efddf8 into main Oct 17, 2026
12 checks passed
@lesnik512
lesnik512 deleted the docs/shared-container-owner branch October 17, 2026 13:21
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.

1 participant