def job_failing_once():
    '\n    This job will fail exactly once; retry will be successful\n    '
    from jobcontrol.globals import current_job
    exec_count = len(list(current_job.iter_runs()))
    if (exec_count <= 1):
        raise RuntimeError('Simulating failure')
    return exec_count
This job will fail exactly once; retry will be successful
def job_failing_once():
    '\n    \n    '
    from jobcontrol.globals import current_job
    exec_count = len(list(current_job.iter_runs()))
    if (exec_count <= 1):
        raise RuntimeError('Simulating failure')
    return exec_count