open-vault/vault/eventbus
Christopher Swenson 020a3903ff
events: Remove subscriptions on timeout and cancel (#19185)
When subscriptions are too slow to accept messages on their channels,
then we should remove them from the fanout so that we don't have
dead subscriptions using up resources.

In addition, when a subscription is explicitly canceled, we should
also clean up after it remove the corresponding pipeline.

We also add a new metrics, `events.subscriptions`, to keep track
of the number of active subscriptions. This also helps us test.

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2023-02-15 11:13:15 -08:00
..
bus.go events: Remove subscriptions on timeout and cancel (#19185) 2023-02-15 11:13:15 -08:00
bus_test.go events: Remove subscriptions on timeout and cancel (#19185) 2023-02-15 11:13:15 -08:00