def get_parent_context(liveaction_db):
    context = getattr(liveaction_db, 'context', None)
    if not context:
        return None
    return context.get('parent', None)
Returns context of the parent execution.
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/services/executions.py/get_parent_context