import * as wmill from "https://deno.land/x/windmill@v1.85.0/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 320 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/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 391 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/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 523 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/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 558 days ago
import * as wmill from "https://deno.land/x/windmill@v1.60.0/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 606 days ago
import * as wmill from "https://deno.land/x/windmill@v1.57.1/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 613 days ago
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 614 days ago