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

Method executeTask

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

Source from the content-addressed store, hash-verified

69 }
70
71 public async executeTask(task: TaskListItem) {
72 task.runInfo.msg += '\r\n' + `${new Date(Date.now()).toLocaleString()}: ${t('trigger_task')}`
73 const updatedTask = await runTask(task)
74 this.tasks = this.tasks.map(t => (t.name === updatedTask.name ? updatedTask : t))
75 }
76
77 cancelTask(taskName: string) {
78 const task = this.tasks.find(t => t.name === taskName)

Callers 3

scheduleTaskMethod · 0.95
executeTaskIntervalMethod · 0.95
Task_pageFunction · 0.80

Calls 1

runTaskFunction · 0.90

Tested by

no test coverage detected