Set the state of a Windmill schedule to be turned on or off
1
//native
2
3
import * as wmill from "windmill-client@1";
4
5
export async function main(schedule_path: string, enabled: boolean) {
6
const conf = wmill.createConf();
7
const schedule_api = new wmill.ScheduleApi(conf);
8
return await schedule_api.setScheduleEnabled(
9
conf.workspace_id,
10
schedule_path,
11
{
12
enabled,
13
}
14
);
15
16
import * as wmill from "https://deno.land/x/[email protected]/mod.ts";