Diagrid
Back to all questions
Durable Execution

What is the difference between retries and compensation in durable agent workflows?

Retries automatically re-execute a failed step until it succeeds or exhausts a limit, assuming the step is idempotent. Compensation runs undo logic for already-completed steps when the overall workflow must roll back. Catalyst supports both: retries via Dapr Workflow retry policies and compensation via custom rollback activities. Use retries for transient errors; use compensation for semantic rollback of side effects.

Was this article helpful?

Your feedback helps improve Diagrid's FAQ experience.

Keep reading

More Diagrid FAQ articles

View all