(dep_group, child_app_name, child_job_id,
                               parent_app_name, ld)
Given metadata about a dependency group, set the dep_group['job_id']
    value.  Assume the dependency group only specifies an app_name key.
    Also, if the field for each identifier in the current job_id does
    not exist in the dependency group, add it.

    Basically, just update the dependency group with information
Given metadata about a dependency group, set the dep_group['job_id']
    value.  Assume the dependency group only specifies an app_name key.
    Also, if the field for each identifier in the current job_id does
    not exist in the dependency group, add it.
Given metadata about a dependency group set the dep_group [ job_id ] value . Assume the dependency group only specifies an app_name key . Also if the field for each identifier in the current job_id does not exist in the dependency group add it .
def _inplace_modify_depends_on(dep_group, child_app_name, child_job_id,
                               parent_app_name, ld):
    """Given metadata about a dependency group, set the dep_group['job_id']
    value.  Assume the dependency group only specifies an app_name key.
    Also, if the field for each identifier in the current job_id does
    not exist in the dependency group, add it.

    Basically, just update the dependency group with information """
    # if only "app_name" is defined in this dependency group,
    # assume child inherited the parent's job_id and passed that
    # to this child
    if child_job_id is None:
        _log_raise(
            ("It's impossible to get all parent job_ids if the"
                " child expects to inherit the parent's job_id and you"
                " haven't specified the child's job_id"),
            extra=dict(parent_app_name=parent_app_name, **ld),
            exception_kls=DAGMisconfigured)
    pjob_id = parse_job_id(child_app_name, child_job_id)
    if len(dep_group) == 1 and len(dep_group['app_name']) == 1:
        t, pt = get_job_id_template(parent_app_name)
        try:
            dep_group['job_id'] = [t.format(**pjob_id)]
        except Exception as err:
            _log_raise(
                ("The child job_id doesn't contain enough pjob_id data to"
                 " create the parent job_id. Err details: %s") % err,
                extra=dict(job_id_template=t, pjob_iddata=str(pjob_id), **ld),
                exception_kls=err.__class__)
    else:
        for k, v in pjob_id.items():
            if k not in dep_group:
                dep_group[k] = [v]
def _inplace_modify_depends_on ( dep_group , child_app_name , child_job_id , parent_app_name , ld ) : # if only "app_name" is defined in this dependency group, # assume child inherited the parent's job_id and passed that # to this child if child_job_id is None : _log_raise ( ( "It's impossible to get all parent job_ids if the" " child expects to inherit the parent's job_id and you" " haven't specified the child's job_id" ) , extra = dict ( parent_app_name = parent_app_name , * * ld ) , exception_kls = DAGMisconfigured ) pjob_id = parse_job_id ( child_app_name , child_job_id ) if len ( dep_group ) == 1 and len ( dep_group [ 'app_name' ] ) == 1 : t , pt = get_job_id_template ( parent_app_name ) try : dep_group [ 'job_id' ] = [ t . format ( * * pjob_id ) ] except Exception as err : _log_raise ( ( "The child job_id doesn't contain enough pjob_id data to" " create the parent job_id. Err details: %s" ) % err , extra = dict ( job_id_template = t , pjob_iddata = str ( pjob_id ) , * * ld ) , exception_kls = err . __class__ ) else : for k , v in pjob_id . items ( ) : if k not in dep_group : dep_group [ k ] = [ v ]