def get_parent_context(liveaction_db):
    context = getattr(liveaction_db, 'context', None)
    if not context:
        return None
    return context.get('parent', None)
A Crochet-managed reactor notice when a process it started exits.
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/services/executions.py/get_parent_context--crossover with--dataset/ETHPy150Open itamarst/crochet/crochet/tests/test_process.py/ProcessTests.test_processExit