diff --git a/backend/windmill-queue/src/jobs.rs b/backend/windmill-queue/src/jobs.rs index 03e995125d..0bd21154bb 100644 --- a/backend/windmill-queue/src/jobs.rs +++ b/backend/windmill-queue/src/jobs.rs @@ -140,7 +140,11 @@ pub async fn cancel_job<'c: 'async_recursion>( return Ok((tx, None)); } let job_running = job_running.unwrap(); - if job_running.running && !force_cancel { + if job_running.running + && job_running.job_kind != JobKind::Flow + && job_running.job_kind != JobKind::FlowPreview + && !force_cancel + { sqlx::query!( "UPDATE queue SET canceled = true, canceled_by = $1, canceled_reason = $2, scheduled_for = now(), suspend = 0 WHERE id = $3 \ AND workspace_id = $4 ", diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte index 69158ce6b7..6a470d00d4 100644 --- a/frontend/src/lib/components/FlowStatusViewer.svelte +++ b/frontend/src/lib/components/FlowStatusViewer.svelte @@ -492,7 +492,7 @@ target="_blank" href="/run/{node.job_id ?? ''}?workspace={job?.workspace_id}" > - {truncateRev(node.job_id ?? '', 1) ?? ''} + {truncateRev(node.job_id ?? '', 10) ?? ''}