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

Add more warning's to nats subscription factory #1907

Merged
merged 32 commits into from
Nov 11, 2024
Merged

Conversation

sheldygg
Copy link
Contributor

@sheldygg sheldygg commented Nov 7, 2024

Description

Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context.

Fixes #1899

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-analysis.sh
  • I have included code examples to illustrate the modifications

@Lancetnik Lancetnik marked this pull request as draft November 8, 2024 18:26
@Lancetnik
Copy link
Member

@HHongSeungWoo can you review this PR, please?

Comment on lines 359 to 370
warnings.warn(
"`idle_heartbeat` option can be used with JetStream (Pull/Push) - only.",
RuntimeWarning,
stacklevel=4,
)

if flow_control is not None:
warnings.warn(
"`flow_control` option can be used with JetStream (Pull/Push) - only.",
RuntimeWarning,
stacklevel=4,
)

Choose a reason for hiding this comment

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

My understanding is that these options only apply to push based consumers.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, fixed

@sheldygg sheldygg marked this pull request as ready for review November 9, 2024 13:20
@Lancetnik
Copy link
Member

@kumaranvpl can you proofread and polish warnings text, please?

@Lancetnik Lancetnik requested a review from kumaranvpl November 9, 2024 18:42
@kumaranvpl kumaranvpl added this pull request to the merge queue Nov 10, 2024
@kumaranvpl kumaranvpl removed this pull request from the merge queue due to a manual request Nov 10, 2024
Copy link
Collaborator

@kumaranvpl kumaranvpl left a comment

Choose a reason for hiding this comment

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

@Lancetnik Will proofread it tomorrow morning

kumaranvpl
kumaranvpl previously approved these changes Nov 11, 2024
@kumaranvpl kumaranvpl enabled auto-merge November 11, 2024 05:14
@kumaranvpl kumaranvpl added this pull request to the merge queue Nov 11, 2024
Merged via the queue into airtai:main with commit bd188c7 Nov 11, 2024
32 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.

Feat: add warning for NATS subscriber factory if user sets useless options
4 participants