fix cancel jobs

This commit is contained in:
Ruben Fiszel
2023-08-27 15:09:54 +02:00
parent e051451cd6
commit 38f4e7f69d
3 changed files with 16 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ pub async fn cancel_job<'c: 'async_recursion>(
}
let job_running = job_running.unwrap();
if ((!job_running.running && job_running.root_job.is_none())
if ((job_running.running || job_running.root_job.is_some())
|| (job_running.job_kind == JobKind::Flow || job_running.job_kind == JobKind::FlowPreview))
&& !force_cancel
{