MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_root_execution

Function get_root_execution

st2common/st2common/services/action.py:479–494  ·  view source on GitHub ↗

Recursively ascends until the root action execution is found Useful for finding an original parent workflow. Pass in any ActionExecutionDB instance, and this function will eventually return the top-most action execution, even if the two are one and the same. :param execution_db: Th

(execution_db)

Source from the content-addressed store, hash-verified

477
478
479def get_root_execution(execution_db):
480 """Recursively ascends until the root action execution is found
481
482 Useful for finding an original parent workflow. Pass in any ActionExecutionDB instance,
483 and this function will eventually return the top-most action execution, even if the two
484 are one and the same.
485
486 :param execution_db: The ActionExecutionDB instance for which to find the root parent.
487 :rtype: ActionExecutionDB
488 """
489
490 parent_execution_db = get_parent_execution(execution_db)
491
492 return (
493 get_root_execution(parent_execution_db) if parent_execution_db else execution_db
494 )
495
496
497def store_execution_output_data(

Callers

nothing calls this directly

Calls 1

get_parent_executionFunction · 0.85

Tested by

no test coverage detected