Skip to content

Commit 33d0389

Browse files
committed
clearer comment
1 parent a5c10ba commit 33d0389

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/payload/src/queues/errors/handleWorkflowError.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export async function handleWorkflowError({
4444
stack: error.stack,
4545
}
4646

47-
// No retries configured => permanently fail.
47+
// No retries configured => permanently fail. Errors reaching this handler are
48+
// workflow-level (task errors are routed to handleTaskError first), so there's
49+
// nothing else to bound them.
4850
const hasNoRetriesConfigured =
4951
workflowConfig.retries === undefined || workflowConfig.retries === null
5052

0 commit comments

Comments
 (0)