Skip to content

TASK: Leave retries of failed claimed runs to the caller - #19

Merged
bwaidelich merged 1 commit into
mainfrom
caller-retry-policy
Nov 12, 2026
Merged

bwaidelich merged 1 commit into
mainfrom
caller-retry-policy

Conversation

@bwaidelich

Copy link
Copy Markdown
Owner

catchUpNextActive() and bootNext() no longer set failed subscriptions aside per engine instance. A failed run still rolls back and returns a failed result with the id of the subscription, but the next call claims it again. Callers leave it out through SubscriptionEngineCriteria.

The set-aside only helped processes that loop, and the worker needed its own backoff on top of it. Adding engine state later is additive, removing it after 2.0 would be a break.

A failed subscription now counts for hasPendingEvents, as it is still behind.

`catchUpNextActive()` and `bootNext()` no longer set failed subscriptions
aside per engine instance. A failed run still rolls back and returns a
failed result with the id of the subscription, but the next call claims
it again. Callers leave it out through `SubscriptionEngineCriteria`.

The set-aside only helped processes that loop, and the worker needed its
own backoff on top of it. Adding engine state later is additive, removing
it after 2.0 would be a break.

A failed subscription now counts for `hasPendingEvents`, as it is still
behind.
@bwaidelich
bwaidelich merged commit de5d4cb into main Nov 12, 2026
5 checks passed
@bwaidelich
bwaidelich deleted the caller-retry-policy branch November 12, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant