Skip to content

Task retries

A2A Mesh exposes TaskRetryScheduler helpers for retry planning, capped backoff, due checks, success, and dead-letter transitions.

This is an in-process contract for durable task engines. Queue adapters can persist TaskRetryPlan records in Postgres, Redis, BullMQ, Temporal, or another scheduler while keeping the same state and delay semantics.

Helpers

HelperPurpose
createTaskRetryPlanCreates a queued retry plan.
markTaskAttemptStartedMoves a plan to running and increments attempts.
markTaskAttemptFailedReschedules the plan or marks it dead-lettered.
markTaskAttemptSucceededMarks the plan succeeded.
isTaskRetryDueChecks whether queued work is ready to run.
calculateRetryDelayMsComputes capped exponential backoff.

Last updated:

Released under the Apache-2.0 License.