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

Method CancelExecution

pkg/workflow/engine.go:259–270  ·  view source on GitHub ↗

CancelExecution 取消执行

(executionID string)

Source from the content-addressed store, hash-verified

257
258// CancelExecution 取消执行
259func (e *Engine) CancelExecution(executionID string) error {
260 e.executionsMu.RLock()
261 _, exists := e.executions[executionID]
262 e.executionsMu.RUnlock()
263
264 if !exists {
265 return fmt.Errorf("execution not found: %s", executionID)
266 }
267
268 e.cancelExecution(executionID)
269 return nil
270}
271
272// PauseExecution 暂停执行
273func (e *Engine) PauseExecution(executionID string) error {

Callers 1

ExecuteWithActorsMethod · 0.80

Calls 1

cancelExecutionMethod · 0.95

Tested by

no test coverage detected