Skip to content

Commit

Permalink
do not call workspace error handler if flow has error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoCasa committed Sep 24, 2024
1 parent 17a8700 commit e8f5f57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/windmill-queue/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,11 @@ pub async fn add_completed_job<
)
.await;
} else if !skip_downstream_error_handlers
&& matches!(queued_job.job_kind, JobKind::Flow | JobKind::Script)
&& (matches!(queued_job.job_kind, JobKind::Script)
|| matches!(queued_job.job_kind, JobKind::Flow)
&& queued_job
.parse_raw_flow()
.is_some_and(|v| v.failure_module.is_none()))
&& queued_job.parent_job.is_none()
{
let result = serde_json::from_str(
Expand Down

0 comments on commit e8f5f57

Please sign in to comment.