MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / addTask

Method addTask

src/controller/task/scheduler.ts:13–21  ·  view source on GitHub ↗
(task: TaskListItem)

Source from the content-addressed store, hash-verified

11 }
12
13 public async addTask(task: TaskListItem) {
14 if (!task.runInfo.msg) {
15 task.runInfo.msg = ''
16 }
17 if (task.enable) {
18 this.tasks.push(task)
19 this.scheduleTask(task)
20 }
21 }
22
23 private async scheduleTask(task: TaskListItem) {
24 switch (task.run.mode) {

Callers 3

Task_pageFunction · 0.80
saveTaskFunction · 0.80
startTaskSchedulerFunction · 0.80

Calls 1

scheduleTaskMethod · 0.95

Tested by

no test coverage detected