Resume a suspended flow based on its id. Require to be owner of the suspended flow
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
import * as wmill from "https://deno.land/x/[email protected]/mod.ts";