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

Function get_parent_context

st2common/st2common/services/executions.py:282–292  ·  view source on GitHub ↗

Returns context of the parent execution. :return: If found the parent context else None. :rtype: dict

(liveaction_db)

Source from the content-addressed store, hash-verified

280
281
282def get_parent_context(liveaction_db):
283 """
284 Returns context of the parent execution.
285
286 :return: If found the parent context else None.
287 :rtype: dict
288 """
289 context = getattr(liveaction_db, "context", None)
290 if not context:
291 return None
292 return context.get("parent", None)
293
294
295class AscendingSortedDescendantView(object):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected