0

List Suspended Jobs

by
Published Jan 3, 2023

List Queued jobs that are currently suspended

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(scriptPathExact?: string) {
6
  return wmill.JobService.listQueue({
7
    workspace: wmill.getWorkspace(),
8
    suspend: true,
9
    perPage: 50,
10
    scriptPathExact,
11
  });
12
}
13

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(scriptPathExact?: string) {
    4
      return wmill.JobService.listQueue({
    5
        workspace: wmill.getWorkspace(),
    6
        suspend: true,
    7
        perPage: 50,
    8
        scriptPathExact,
    9
      });
    10
    }
    11