Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ import { isActionStepType } from '@novu/application-generic';
import { JobEntity } from '@novu/dal';

export const shouldHaltOnStepFailure = (job: JobEntity): boolean => {
if (!job.type) {
return job.step.shouldStopOnFail === true;
}

/*
* Action steps always stop on failure across all versions (v1 & v2)
*/
if (isActionStepType(job.type)) {
if (job.type && isActionStepType(job.type)) {
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says this change improves robustness by only calling isActionStepType when job.type is present, but the previous implementation already short-circuited on !job.type. If there’s no intended behavior change here, consider updating the PR description to reflect that this is a refactor/simplification only (or add a note if a subtle behavior/typing issue was being addressed).

Copilot uses AI. Check for mistakes.
return true;
}

Expand Down
Loading