0
List Queued Jobs
One script reply has been approved by the moderators Verified

List Windmill Queued Jobs

Created by admin 473 days ago Viewed 4383 times
0
Submitted by admin Deno
Verified 473 days ago
1
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
2

3
export async function main(
4
  scriptPathExact?: string,
5
  onlySuspendedJobs: boolean
6
) {
7
  return wmill.JobService.listQueue({
8
    workspace: wmill.getWorkspace(),
9
    suspended: onlySuspendedJobs,
10
    perPage: 50,
11
    scriptPathExact,
12
  });
13
}
14