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

Method CancelPlan

pkg/agent/execution_plan.go:269–279  ·  view source on GitHub ↗

CancelPlan 取消当前计划

(reason string)

Source from the content-addressed store, hash-verified

267
268// CancelPlan 取消当前计划
269func (m *ExecutionPlanManager) CancelPlan(reason string) {
270 if m.currentPlan == nil {
271 return
272 }
273 m.executor.Cancel(m.currentPlan, reason)
274
275 agentLog.Info(context.Background(), "execution plan canceled", map[string]any{
276 "plan_id": m.currentPlan.ID,
277 "reason": reason,
278 })
279}
280
281// ResumePlan 恢复执行当前计划
282func (m *ExecutionPlanManager) ResumePlan(ctx context.Context) error {

Callers

nothing calls this directly

Calls 2

CancelMethod · 0.65
InfoMethod · 0.65

Tested by

no test coverage detected