Should we skip the job based on its number

    If the machine has a number at the end of its hostname (n), and we have m
    machines in the pool -

    on machine 1, run job 1, 1 + m, 1+2m etc

    on machine 2, run job 2, 2 + m , 2 + 2m etc

    Else run all the jobs

def skip_job(counter):
    """ Should we skip the job based on its number

    If the machine has a number at the end of its hostname (n), and we have m
    machines in the pool -

    on machine 1, run job 1, 1 + m, 1+2m etc

    on machine 2, run job 2, 2 + m , 2 + 2m etc

    Else run all the jobs
    """
    try:
        host_number = int(socket.gethostname().split('-')[-1])
    except ValueError:
        return False
    if (counter + host_number - (NUMBER_OF_HOSTS - 1)) % NUMBER_OF_HOSTS == 0:
        return False
    return True