MCPcopy Create free account
hub / github.com/astercloud/aster / GetTaskStatus

Method GetTaskStatus

pkg/tools/builtin/task_manager.go:321–328  ·  view source on GitHub ↗

GetTaskStatus 获取任务状态

(taskID string)

Source from the content-addressed store, hash-verified

319
320// GetTaskStatus 获取任务状态
321func (tm *FileTaskManager) GetTaskStatus(taskID string) (string, error) {
322 task, err := tm.GetTask(taskID)
323 if err != nil {
324 return "", err
325 }
326
327 return task.Status, nil
328}
329
330// CleanupTask 清理任务相关文件
331func (tm *FileTaskManager) CleanupTask(taskID string) error {

Callers

nothing calls this directly

Calls 1

GetTaskMethod · 0.95

Tested by

no test coverage detected