-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support consumer pause #266
Comments
The PR has been merged: nats-io/nats-server#5066 Schemas PR, which is probably the best source of information how to implement the feature: Request and response schemas: // io.nats.jetstream.api.v1.consumer_pause_request
type JSApiConsumerPauseRequest struct {
PauseUntil time.Time `json:"pause_until,omitempty"`
}
// io.nats.jetstream.api.v1.consumer_pause_response
type JSApiConsumerPauseResponse struct {
JSApiResponse
Paused bool `json:"paused"`
PauseUntil time.Time `json:"pause_until"`
PauseRemaining time.Duration `json:"pause_remaining,omitempty"`
} Consumer info includes 2 new fields: Paused bool PauseUntil time.Time |
Go Client: nats-io/nats.go#1571 |
Java client: nats-io/nats.java#1093 |
.NET.v2 client: nats-io/nats.net#432 |
Rust Client: nats-io/nats.rs#1234 |
☝️ All of these contributions are so cool to see 😄 |
Overview
In 2.11 consumers can be paused using the API and optionally started paused.
Clients should at the very least support the added fields to config and state for consumers, but might be handy to also add some utilities.
Initial server issue nats-io/nats-server#4966
NOTE This is not merged at the moment, hold until merged. Also review the PR or schemas rather than the Issue for latest implementation detail
Clients and Tools
Other Tasks
Implemented
Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.
The text was updated successfully, but these errors were encountered: