Resume a suspended flow based on its id. Require to be owner of the suspended flow
1
import * as wmill from "https://deno.land/x/windmill@v1.85.0/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