Edits history of script submission #270 for ' List Suspended Jobs (windmill)'

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

    Submitted by hugo697 398 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(scriptPathExact?: string) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspend: true,
        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) {
      return wmill.JobService.listQueue({
        workspace: wmill.getWorkspace(),
        suspend: true,
        perPage: 50,
        scriptPathExact
      });
    }
    

    Submitted by adam186 1162 days ago

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

    Submitted by adam186 1197 days ago

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

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', script_path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

  • deno
    const per_page = 50
    
    export async function main(script_path?: string) {
      let url = new URL(`http://localhost/api/w/${Deno.env.get('WM_WORKSPACE')}/jobs/queue/list`)
    
      url.searchParams.set('per_page', per_page)
    
      if (script_path) {
        url.searchParams.set('script_path_exact', path)
      }
    
      let res = await fetch(url,
        {
          headers: {
            Authorization: `Bearer ${Deno.env.get('WM_TOKEN')}`
          }
        })
      return res.json()
    }

    Submitted by admin 1253 days ago

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

    Submitted by admin 1253 days ago