Graph States
When you create a graph, each graph is associated with a graph state, which may vary with time and can be manipulated with operations on the graph.
Status |
Description |
---|---|
pending |
Graph is being prepared for execution. Initial state. |
running |
Graph is currently running |
completed |
Graph terminated successfully |
dead |
Graph terminated abnormally because one or more operators in the graph failed. |
unknown |
State of graph is unknown. Indicates internal problems. |
Initially, the graph is in the pending state. In this state, the graph is being prepared for execution. It remains in this state until either an error occurs, or state of all subgraphs in graph is running.
The following image depicts the potential graph transition states.
If an error occurs during the running state, the graph allocation (and hence the overall graph) changes to dead. If all subgraphs terminate successfully, the graph state changes to completed.