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

Method checkDependenciesWithMap

pkg/executionplan/executor.go:395–407  ·  view source on GitHub ↗

checkDependenciesWithMap 使用完成映射检查依赖

(step *Step, completed map[string]bool)

Source from the content-addressed store, hash-verified

393
394// checkDependenciesWithMap 使用完成映射检查依赖
395func (e *Executor) checkDependenciesWithMap(step *Step, completed map[string]bool) bool {
396 if len(step.DependsOn) == 0 {
397 return true
398 }
399
400 for _, depID := range step.DependsOn {
401 if !completed[depID] {
402 return false
403 }
404 }
405
406 return true
407}
408
409// Resume 恢复执行(从当前步骤继续)
410func (e *Executor) Resume(ctx context.Context, plan *ExecutionPlan, toolCtx *tools.ToolContext) error {

Callers 1

executeParallelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected