Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (#1100): FastAPI 0.106 compatibility #1102

Merged
merged 7 commits into from
Dec 27, 2023
Merged

Conversation

Lancetnik
Copy link
Collaborator

@Lancetnik Lancetnik commented Dec 27, 2023

Description

  • FastAPI "0.106+" compatibility
  • NATS max_workers option
    @nats_broker(..., max_workers=10)
    async def handler(...):
        """
        Consumes messages from subject concurently in the pool
        (up to 10 messages in the same time)
        """

Fixes #1100, close #1099

Type of change

Please delete options that are not relevant.

  • Documentation (typos, code examples, or any documentation updates)
  • Bug fix (a non-breaking change that resolves an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a fix or feature that would disrupt existing functionality)
  • This change requires a documentation update

Checklist

  • My code adheres to the style guidelines of this project (scripts/lint.sh shows no errors)
  • I have conducted a self-review of my own code
  • I have made the necessary changes to the documentation
  • My changes do not generate any new warnings
  • I have added tests to validate the effectiveness of my fix or the functionality of my new feature
  • Both new and existing unit tests pass successfully on my local environment by running scripts/test-cov.sh
  • I have ensured that static analysis tests are passing by running scripts/static-anaylysis.sh
  • I have included code examples to illustrate the modifications

@Lancetnik Lancetnik added bug Something isn't working enhancement New feature or request labels Dec 27, 2023
faststream/_compat.py Outdated Show resolved Hide resolved
davorrunje
davorrunje previously approved these changes Dec 27, 2023
@davorrunje davorrunje added this pull request to the merge queue Dec 27, 2023
Merged via the queue into main with commit a5caa68 Dec 27, 2023
27 checks passed
@davorrunje davorrunje deleted the fix/fastapi106-compay branch December 27, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Bug: FastAPI 0.106.0 broke the integration Feature: parallel message/request processing without throttling
2 participants