92277fce285eac25c9f9c92a68fa9b3d50b07f30,foreman/data_refinery_foreman/foreman/main.py,,requeue_downloader_job,#Any#,41

Before Change


    logger.info("Requeuing Downloader Job which had ID %d with a new Downloader Job with ID %d.",
                last_job.id,
                new_job.id)
    send_job(Downloaders[last_job.downloader_task], new_job)

    last_job.retried = True
    last_job.success = False
    last_job.retried_job = new_job

After Change


    logger.info("Requeuing Downloader Job which had ID %d with a new Downloader Job with ID %d.",
                last_job.id,
                new_job.id)
    try:
        send_job(Downloaders[last_job.downloader_task], new_job)

        last_job.retried = True
        last_job.success = False
        last_job.retried_job = new_job
        last_job.save()
    except:
        logger.error("Failed to requeue Downloader Job which had ID %d with a new Downloader Job with ID %d.",
                     last_job.id,
                     new_job.id)
        // Can"t communicate with nomad just now, leave the job for a later loop.
        new_job.delete()


def handle_repeated_failure(job) -> None:
    If a job fails too many times, log it and stop retrying.
    // Not strictly retried but will prevent the job from getting
    // retried any more times.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: AlexsLemonade/refinebio
Commit Name: 92277fce285eac25c9f9c92a68fa9b3d50b07f30
Time: 2018-08-14
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/foreman/main.py
Class Name:
Method Name: requeue_downloader_job


Project Name: AlexsLemonade/refinebio
Commit Name: 6fbf744843466b4d589cccf29e2d02571ea3f3f1
Time: 2019-04-01
Author: kurt.wheeler91@gmail.com
File Name: workers/data_refinery_workers/downloaders/utils.py
Class Name:
Method Name: create_processor_job_for_original_files


Project Name: AlexsLemonade/refinebio
Commit Name: 9676f0ca305c81f13111d31f74f101c860c267a8
Time: 2018-09-06
Author: kurt.wheeler91@gmail.com
File Name: api/data_refinery_api/views.py
Class Name: DatasetView
Method Name: perform_update


Project Name: AlexsLemonade/refinebio
Commit Name: 92277fce285eac25c9f9c92a68fa9b3d50b07f30
Time: 2018-08-14
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/foreman/main.py
Class Name:
Method Name: requeue_processor_job


Project Name: AlexsLemonade/refinebio
Commit Name: 6fbf744843466b4d589cccf29e2d02571ea3f3f1
Time: 2019-04-01
Author: kurt.wheeler91@gmail.com
File Name: workers/data_refinery_workers/downloaders/utils.py
Class Name:
Method Name: create_processor_jobs_for_original_files