temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Different retry options based on failure type

Open mfateev opened this issue 5 years ago • 4 comments

Currently both workflow and activity retry options do not differentiate between failure types besides allowing to not retry configured list of failures.

The proposal is to allow specifying different retry options for different failure types. For example intermittent errors can be retried immediately, but some errors that are not intermittent (like NPE) and require human intervention can be retried with much higher intervals.

mfateev avatar Feb 09 '20 19:02 mfateev

upvoting this ticket! This feature will be very useful for activities that are hitting external APIs and needs to backoff for some period of time on specific error type.

ronnie660 avatar Jan 11 '24 21:01 ronnie660

Just came here to create a similar issue. Also, it should be possible for the workflow to not even retry in the cases of certain types of failure (which are not transient). This error mapping with retry policy can be provided by temporal or be taken as input from the user.

utkarshpaliwal9 avatar Jan 17 '24 08:01 utkarshpaliwal9

Also, it should be possible for the workflow to not even retry in the cases of certain types of failure (which are not transient).

@utkarshpaliwal9 This is possible, you can mark a failure type string as not retryable or throw a non retryable application failure.

dhoepelman avatar May 30 '24 07:05 dhoepelman

Is there any workaround?

MatanYadaev avatar Jul 30 '24 07:07 MatanYadaev