Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains how catch blocks in Temporal Output workflows handle final-step failures: fallbacks, partial failures, and error propagation.
61% 96%+35 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 14 of 23 without it.
Show me the standard boilerplate for exporting a workflow definition named `process_order` that calls a step function `processOrderStep(input)` using the core workflow helper framework.
The implementation exports using the workflow function from @outputai/core.
3 of 3 safety checks passed
Steps and evaluators run as Temporal Activities. Temporal applies their configured retry policy before returning a successful result or throwing a final failure to workflow code.
A workflow catch around a step therefore runs only after the step has exhausted its Activity retries. Catching that failure does not disable or bypass the Activity retry policy.
The catch block decides what the workflow does with the final failure:
Do not add a catch block that only wraps or logs an error. It can discard Temporal's failure type, cause chain, and retry metadata.
// Avoid: replaces the original Temporal failure chain.
try {
return await fetchData( input );
} catch ( error ) {
throw new Error( `Fetch failed: ${error.message}` );
}
When the workflow cannot recover, let the step failure propagate:
export default workflow( {
name: 'fetch_workflow',
fn: async input => fetchData( input )
} );
If a catch block handles only known failures, always rethrow everything else.
Next to this one in the catalogue, plus more from the same author.