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

Method updateState

pkg/tools/long_running.go:265–269  ·  view source on GitHub ↗

辅助方法 updateState 更新任务状态

(taskID string, state TaskState)

Source from the content-addressed store, hash-verified

263
264// updateState 更新任务状态
265func (e *LongRunningExecutor) updateState(taskID string, state TaskState) error {
266 return e.updateStatus(taskID, func(s *TaskStatus) {
267 s.State = state
268 })
269}
270
271// updateStatus 更新任务状态(通用)
272func (e *LongRunningExecutor) updateStatus(taskID string, updater func(*TaskStatus)) error {

Callers 1

StartAsyncMethod · 0.95

Calls 1

updateStatusMethod · 0.95

Tested by

no test coverage detected