MCPcopy Create free account
hub / github.com/xerrors/Yuxi / cancelTask

Function cancelTask

web/src/stores/tasker.js:123–133  ·  view source on GitHub ↗
(taskId)

Source from the content-addressed store, hash-verified

121 }
122
123 async function cancelTask(taskId) {
124 if (!taskId) return
125 try {
126 await taskerApi.cancelTask(taskId)
127 message.success('取消任务成功')
128 await refreshTask(taskId)
129 } catch (error) {
130 console.error(`取消任务 ${taskId} 失败`, error)
131 message.error(error?.message || '取消任务失败')
132 }
133 }
134
135 async function deleteTask(taskId) {
136 if (!taskId) return

Callers

nothing calls this directly

Calls 1

refreshTaskFunction · 0.85

Tested by

no test coverage detected