Skip to content

Serve the bug-fix broker through a shared run_broker wrapper - #7276

Open
ayoubdiourin7 wants to merge 2 commits into
mozilla:masterfrom
ayoubdiourin7:ayoubdiourin7/broker-wrapper
Open

ayoubdiourin7 wants to merge 2 commits into
mozilla:masterfrom
ayoubdiourin7:ayoubdiourin7/broker-wrapper

Conversation

@ayoubdiourin7

Copy link
Copy Markdown
Contributor

Fixes #7273

@ayoubdiourin7
ayoubdiourin7 requested a review from a team as a code owner October 22, 2026 21:26

@suhaibmujahid suhaibmujahid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! Just if we could improve the interface.



def run_broker[S: BaseSettings](
build_app: Callable[[S], ASGIApp], settings_cls: type[S]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we avoid the requirement to pass settings_cls, it is a bit ugly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, we can by passing settings_cls into build_app; updated in 0e42e04

This branch has not been deployed

No deployments
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.

Add a shared runtime wrapper for brokers

2 participants