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 inactive threshold for pull consumer #994

Merged

Conversation

paulgb
Copy link
Contributor

@paulgb paulgb commented Jun 8, 2023

This exposes the InactiveThreshold parameter of a push stream, similar to how it is exposed for pull streams.

I also add a jetstream_push.rs example (mostly copied from jetstream_pull.rs) which I used to confirm that it works, but I am happy to remove this if it is unhelpful.

I changed the dosctring on the pull consumer from “Threshold for ephemeral consumer activity” to “Threshold for consumer activity” to account for the fact that as of 2.9 it applies to non-ephemeral consumers also.

@Jarema
Copy link
Member

Jarema commented Jun 8, 2023

Thanks for the PR! Will look into it soon.

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM!

@Jarema Jarema merged commit f0f25da into nats-io:main Jun 12, 2023
@paulgb paulgb deleted the paulgb/inactive-threshold-for-pull-consumer branch June 12, 2023 13:08
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.

2 participants