def get_job_type(name):
    """Returns job type based on its name."""
    if 'phase1' in name:
        return 'phase1'
    elif 'phase2' in name:
        return 'phase2'
    elif 'dfg' in name:
        return 'dfg'
    else:
        return 'other'