0

Resume Suspended Flow as Owner

by
Published Jan 3, 2023

Resume a suspended flow based on its id. Require to be owner of the suspended flow

Script windmill Verified

The script

Submitted by hugo989 Typescript (fetch-only)
Verified 6 days ago
1
//native
2

3
import * as wmill from "windmill-client@1";
4

5
export async function main(id: string, resumePayload?: object) {
6
  return wmill.JobService.resumeSuspendedFlowAsOwner({
7
    workspace: wmill.getWorkspace(),
8
    id,
9
    requestBody: resumePayload ?? {},
10
  });
11
}
12

Other submissions
  • Submitted by admin Deno
    Created 398 days ago
    1
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    2
    
    
    3
    export async function main(id: string, resumePayload?: object) {
    4
      return wmill.JobService.resumeSuspendedFlowAsOwner({
    5
        workspace: wmill.getWorkspace(),
    6
        id,
    7
        requestBody: resumePayload ?? {},
    8
      });
    9
    }
    10