0

List Queued Jobs

by
Published Jan 3, 2023

List Windmill Queued Jobs

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(
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

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(
    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