这是indexloc提供的服务,不要输入任何密码
Skip to content

Subscription graceful shutdown #170

@rbroggi

Description

@rbroggi

I've tried different approaches for gracefully shutting down the subscription and none of them worked.

Here is what I would have expected:

  1. RunWithContext to NOT return a context canceled error in case context is cancelled by client;
  2. Close method to NOT return a context canceled error.

I get the error even when I Unsubscribe explicitly from all the subscriptionIDs.

The current behavior makes distinguishing legit context-cancel (meant to stop the subscriptions) from other internally triggered cancellations impossible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions