the content of task plan
id of new created task plan
import * as tp from 'taskplan'
let id = tp.createMultiTimeTask({
name: "taskName",
assetName: "scriptName",
firstScheduleDate: "2019-09-10 00:00:00",
scheduleInterval: 1,
intervalUnit: tp.IntervalUnit.Minute,
taskType: tp.TaskType.Script,
inputs: {
foo: {
bar: "xxxxxx"
}
}
})
创建一个周期性定时任务,新建的任务模式是处于激活状态
在开启安全配置情况下,需要 '管理定时任务' 权限