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

Function WithOnStepFailed

pkg/executionplan/executor.go:43–47  ·  view source on GitHub ↗

WithOnStepFailed 设置步骤失败回调

(fn func(plan *ExecutionPlan, step *Step, err error))

Source from the content-addressed store, hash-verified

41
42// WithOnStepFailed 设置步骤失败回调
43func WithOnStepFailed(fn func(plan *ExecutionPlan, step *Step, err error)) ExecutorOption {
44 return func(e *Executor) {
45 e.onStepFailed = fn
46 }
47}
48
49// WithOnPlanComplete 设置计划完成回调
50func WithOnPlanComplete(fn func(plan *ExecutionPlan)) ExecutorOption {

Callers 2

NewExecutionPlanManagerFunction · 0.92
TestOnStepFailedCallbackFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestOnStepFailedCallbackFunction · 0.68