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

Method MarkStepStarted

pkg/executionplan/types.go:203–211  ·  view source on GitHub ↗

MarkStepStarted 标记步骤开始

(index int)

Source from the content-addressed store, hash-verified

201
202// MarkStepStarted 标记步骤开始
203func (p *ExecutionPlan) MarkStepStarted(index int) {
204 if step := p.GetStep(index); step != nil {
205 now := time.Now()
206 step.Status = StepStatusRunning
207 step.StartedAt = &now
208 p.CurrentStep = index
209 p.UpdatedAt = now
210 }
211}
212
213// MarkStepCompleted 标记步骤完成
214func (p *ExecutionPlan) MarkStepCompleted(index int, result any) {

Callers 4

TestMarkStepStartedFunction · 0.95
TestMarkStepCompletedFunction · 0.95
TestMarkStepFailedFunction · 0.95
executeStepMethod · 0.80

Calls 1

GetStepMethod · 0.95

Tested by 3

TestMarkStepStartedFunction · 0.76
TestMarkStepCompletedFunction · 0.76
TestMarkStepFailedFunction · 0.76