mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 16:05:58 +00:00
also handle the case where it's the input transform of the first flow job that fails
This commit is contained in:
+16
-8
@@ -133,14 +133,22 @@ pub async fn run_worker(
|
||||
)
|
||||
.await;
|
||||
|
||||
let _ = postprocess_queued_job(
|
||||
job2.schedule_path,
|
||||
job2.script_path,
|
||||
&job2.workspace_id,
|
||||
job2.id,
|
||||
db,
|
||||
)
|
||||
.await;
|
||||
{
|
||||
let job = job2.clone();
|
||||
let _ = postprocess_queued_job(
|
||||
job.schedule_path,
|
||||
job.script_path,
|
||||
&job2.workspace_id,
|
||||
job2.id,
|
||||
db,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
if job2.parent_job.is_some() {
|
||||
let _ =
|
||||
update_flow_status_after_job_completion(db, &job2, false, None).await;
|
||||
}
|
||||
tracing::error!(job_id = %job2.id, "Error handling job: {err_string}");
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user