resolveAnywhere

abstract suspend fun resolveAnywhere(subscription: SubscriptionId, ref: AggregateRef): ParkedAggregate?

Resolves the entry parking ref for subscription by removing it, after the aggregate was retried successfully or the operator chose to skip it: either way the subscription handles the aggregate's entries again. Which of the two happened is the caller's to publish; the ledger only holds what is still parked.

It removes the entry wherever it is parked, for the callers that act on the ledger without a worker of the aggregate's partition: the timers' parked entries, the skips of a context's maintenance, and the import of 9.x compensations. A subscription's parked aggregate is resolved by the worker of its partition (resolve), an operator's skip included, which another node leaves to that worker as a request.

Return

the removed entry, or null when the aggregate was not parked.