Skip to content

Gracefully handle forced shutdown for Publish background tasks #4483

@suzmue

Description

@suzmue

If the background task that contains the Publish actors gets forcefully stopped (not from dropping the Publisher), the oneshot channels that it holds don't get correctly resolved and we get the unexpected error when polling the channel.

We can resolve this in two ways:

  1. Handle the closed channel on the PublishHandle side
  2. impl Drop for the BatchActors and resolve all PublishHandle's it knows about

1 will likely be easier to implement.

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions