mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
cancel flow on run
This commit is contained in:
@@ -27,7 +27,12 @@
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
export async function runPreview(args: Record<string, any>) {
|
||||
job = undefined
|
||||
job?.type == 'QueuedJob' &&
|
||||
(await JobService.cancelQueuedJob({
|
||||
workspace: $workspaceStore!,
|
||||
id: job.id,
|
||||
requestBody: {}
|
||||
}))
|
||||
intervalId && clearInterval(intervalId)
|
||||
|
||||
jobId = await runFlowPreview(args, newFlow)
|
||||
|
||||
Reference in New Issue
Block a user