(app_name, job_id, delimiter=None)
return _validate_job_id_identifiers(app_name, vals)
Convert given `job_id` into a dict

    `app_name` (str) identifies a task
    `job_id` (str) identifies an instance of a task (ie a subtask)
    `validations` (dict) functions to ensure parts of the job_id are
                         properly typed
    `job_id_template` (str) identifies which validations to apply
    `delimiter` (str) value to split job_id into different components

    ie:
        20140506_876_profile -->

        {'date': 20140506, 'client_id': 876, 'collection_name': 'profile'}

    Returned values are cast into the appropriate type by the validations funcs
Convert given `job_id` into a dict
Convert given job_id into a dict
def parse_job_id(app_name, job_id, delimiter=None):
    """Convert given `job_id` into a dict

    `app_name` (str) identifies a task
    `job_id` (str) identifies an instance of a task (ie a subtask)
    `validations` (dict) functions to ensure parts of the job_id are
                         properly typed
    `job_id_template` (str) identifies which validations to apply
    `delimiter` (str) value to split job_id into different components

    ie:
        20140506_876_profile -->

        {'date': 20140506, 'client_id': 876, 'collection_name': 'profile'}

    Returned values are cast into the appropriate type by the validations funcs

    """
    if delimiter is None:
        delimiter = get_NS().job_id_delimiter
    template, ptemplate = get_job_id_template(app_name)
    vals = job_id.split(delimiter, len(ptemplate) - 1)
    ld = dict(job_id=job_id, app_name=app_name, job_id_template=template)
    if len(vals) != len(ptemplate):
        _log_raise(
            ("Job_id isn't properly delimited.  You might have too few"
             " or too many underscores."),
            extra=ld, exception_kls=InvalidJobId)
    return _validate_job_id_identifiers(app_name, vals)
def parse_job_id ( app_name , job_id , delimiter = None ) : if delimiter is None : delimiter = get_NS ( ) . job_id_delimiter template , ptemplate = get_job_id_template ( app_name ) vals = job_id . split ( delimiter , len ( ptemplate ) - 1 ) ld = dict ( job_id = job_id , app_name = app_name , job_id_template = template ) if len ( vals ) != len ( ptemplate ) : _log_raise ( ( "Job_id isn't properly delimited.  You might have too few" " or too many underscores." ) , extra = ld , exception_kls = InvalidJobId ) return _validate_job_id_identifiers ( app_name , vals )