def get_taskid_atmptn(key_name):
    """
    get jediTaskID and attemptNr from task attempt key name
    """
    tmp_list = key_name.split('#')
    jediTaskID = int(tmp_list[0])
    attemptNr = int(tmp_list[1])
    return jediTaskID, attemptNr