Failure Handling Patterns
Retry logic in Workflows: Best practices for failure handling

Retry logic in Workflows: Best practices for failure handling

11/8/2022

What this post added

This post introduces best practices for handling failures within Temporal Workflows, categorizing errors by 'where' (platform vs. application) and 'when' (transient, intermittent, permanent). It provides guidance on configuring retry policies with exponential backoff, handling non-retryable errors, and implementing backward recovery strategies using pseudocode for undoing critical process steps. The post also introduces the concept of `NewNonRetryableApplicationError` for explicitly marking errors that should not be retried.

Read the original post ↗