MarkStepStarted 标记步骤开始
(index int)
| 201 | |
| 202 | // MarkStepStarted 标记步骤开始 |
| 203 | func (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 标记步骤完成 |
| 214 | func (p *ExecutionPlan) MarkStepCompleted(index int, result any) { |