def METHOD_NAME(jobs):
    for job in jobs:
        try:
            job()
        except JobRuntimeError:
            # if one job raises JobRunTimeRrror signaling its failure,
            # we need to skip all jobs after. This enable us to skip all
            # those tasks after the server cleanup if cleanup fails.
            break