You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found a way to delete a consumer using the Python SDK, the official documentation shows how to do it in Go using the DeleteConsumer method, but it doesn't seem to exist in nats.py.
Calling sub.unsubscribe() doesn't delete the consumer either.
Use case
My App is creating a one off pull based consumer and it needs to clean it after the work is done. I don't want to use an ephemeral consumer because I want to give it a name, and I need to explicitly control its lifecycle.
Contribution
If the proposal is accepted I'm willing to push a PR.
The text was updated successfully, but these errors were encountered:
Proposed change
I haven't found a way to delete a consumer using the Python SDK, the official documentation shows how to do it in Go using the
DeleteConsumer
method, but it doesn't seem to exist innats.py
.Calling
sub.unsubscribe()
doesn't delete the consumer either.Use case
My App is creating a one off pull based consumer and it needs to clean it after the work is done. I don't want to use an ephemeral consumer because I want to give it a name, and I need to explicitly control its lifecycle.
Contribution
If the proposal is accepted I'm willing to push a PR.
The text was updated successfully, but these errors were encountered: