List Windmill Queued Jobs
1
//native
2
3
import * as wmill from "windmill-client@1";
4
5
export async function main(
6
scriptPathExact?: string,
7
onlySuspendedJobs: boolean
8
) {
9
return wmill.JobService.listQueue({
10
workspace: wmill.getWorkspace(),
11
suspended: onlySuspendedJobs,
12
perPage: 50,
13
scriptPathExact,
14
});
15
}
16
import * as wmill from "https://deno.land/x/[email protected]/mod.ts";