def METHOD_NAME():
    """Identify failed jobs and reschedule them up to max attempts"""
    fail_dead_jobs()
    for failed_job in get_failed_jobs():
        if failed_job.attempts < MAX_ATTEMPTS:
            failed_job.mark_scheduled()
        else:
            failed_job.mark_maxxed()