Skip to content

docs: share a container with an app of another integration - #51

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 "Sharing a container" section said "another app", which can read as a second aiohttp app. Two aiohttp apps cannot share one container yet: on modern-di 4.1.0 the second setup_di raises DuplicateProviderTypeError until a release includes modern-python/modern-di#681.

The example is now an app of another integration (a FastStream consumer). The section also says to pass manage_lifespan=False to every setup_di that shares the container, as the modern-di docs do, and links the shared-container recipe.

@lesnik512
lesnik512 merged commit f3eb659 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