Skip to main content
Global registry for managing graph executions and registered graphs This singleton class tracks execution counts per graph ID and registered graph instances

Methods

Methods

cleanupAllGraphs

cleanupAllGraphs(): void
Global cleanup method that handles all registered graphs Performs the complete cleanup sequence for each graph

Returns

void

clearAll

clearAll(): void
Clear all registered graphs, executions, and counts (without cleanup)

Returns

void

getAllRegisteredGraphs

getAllRegisteredGraphs(): Graph[]
Get all registered graphs

Returns

Graph[]

registerExecution

registerExecution(graphId: string): void
Register a new graph execution

Parameters

graphId
string
required
Unique identifier for the graph

Returns

void

registerGraph

registerGraph(graphId: string, graph: Graph): void
Register a graph instance (separate from executions)

Parameters

graphId
string
required
Unique identifier for the graph
graph
Graph
required
Graph instance to register

Returns

void

unregisterExecution

unregisterExecution(graphId: string): void
Unregister a graph execution

Parameters

graphId
string
required
Unique identifier for the graph to unregister

Returns

void

unregisterGraph

unregisterGraph(graphId: string): void
Unregister a graph instance

Parameters

graphId
string
required
Unique identifier for the graph instance to unregister

Returns

void