Edits history of script submission #269 for ' List Queued Jobs (windmill)'

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      scriptPathExact?: string,
      onlySuspendedJobs: boolean
    ) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspended: onlySuspendedJobs,
        perPage: 50,
        scriptPathExact,
      });
    }
    

    Submitted by hugo697 399 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      scriptPathExact?: string,
      onlySuspendedJobs: boolean
    ) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspended: onlySuspendedJobs,
        perPage: 50,
        scriptPathExact,
      });
    }
    

    Submitted by hugo697 960 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      scriptPathExact?: string,
      onlySuspendedJobs: boolean,
    ) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspended: onlySuspendedJobs,
        perPage: 50,
        scriptPathExact,
      });
    }
    

    Submitted by admin 1031 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(scriptPathExact?: string, onlySuspendedJobs: boolean) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspended: onlySuspendedJobs,
        perPage: 50,
        scriptPathExact
      });
    }

    Submitted by adam186 1163 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(scriptPathExact?: string, onlySuspendedJobs: boolean) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspended: onlySuspendedJobs,
        perPage: 50,
        scriptPathExact
      });
    }

    Submitted by adam186 1198 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(scriptPathExact?: string, onlySuspendedJobs: boolean) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspended: onlySuspendedJobs,
        perPage: 50,
        scriptPathExact
      });
    }

    Submitted by admin 1246 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(scriptPathExact?: string, onlySuspendedJobs: boolean) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspend: onlySuspendedJobs,
        perPage: 50,
        scriptPathExact
      });
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main() {
      
      let x = await fetch(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list?per_page=${per_page}`,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return x.json()
    }
    

    Submitted by admin 1254 days ago