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

Function _get_parent_execution

st2common/st2common/services/executions.py:170–184  ·  view source on GitHub ↗
(child_liveaction_db)

Source from the content-addressed store, hash-verified

168
169
170def _get_parent_execution(child_liveaction_db):
171 parent_execution_id = child_liveaction_db.context.get("parent", {}).get(
172 "execution_id", None
173 )
174
175 if parent_execution_id:
176 try:
177 return ActionExecution.get_by_id(parent_execution_id)
178 except:
179 LOG.exception(
180 "No valid execution object found in db for id: %s" % parent_execution_id
181 )
182 return None
183
184 return None
185
186
187def _get_web_url_for_execution(execution_id):

Callers 1

create_execution_objectFunction · 0.85

Calls 2

getMethod · 0.45
get_by_idMethod · 0.45

Tested by

no test coverage detected