Documentation
¶
Index ¶
- type Executor
- type Graph
- func (g *Graph) AreAllDependenciesCompleted(nodeID string) bool
- func (g *Graph) Dequeue() *workflow.Node
- func (g *Graph) Enqueue(nodeIDs ...string)
- func (g *Graph) Finished() bool
- func (g *Graph) MarkNodeCompleted(nodeID string)
- func (g *Graph) NextNodes(nodeID string) []*workflow.Node
- func (g *Graph) StartNodes() []*workflow.Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph 表示工作流的DAG图结构
func (*Graph) AreAllDependenciesCompleted ¶
AreAllDependenciesCompleted 检查节点的所有前置依赖是否已完成
func (*Graph) MarkNodeCompleted ¶
MarkNodeCompleted 标记节点已完成
Click to show internal directories.
Click to hide internal directories.