5fbce37c1f6f078e410979b69c8f97a42d89de28,foreman/data_refinery_foreman/foreman/management/commands/retry_samples.py,,retry_computed_files_not_uploaded,#,94

Before Change


    logger.info("Re-queued %d samples that had failed with the pattern %s.", total_samples_queued, pattern)

def retry_computed_files_not_uploaded():
    samples_with_results = Sample.objects.filter(results__computedfile__s3_bucket__isnull=True).values("id")

    samples_with_computed_files = Sample.objects.filter(computed_files__s3_bucket__isnull=True).values("id")

    sample_ids = {s["id"] for s in samples_with_results} | {s["id"] for s in samples_with_computed_files}

    eligible_samples = Sample.objects.filter(id__in=sample_ids)

After Change


        .filter(s3_bucket__isnull=True, samples__isnull=False)\
        .values_list("samples", flat=True)

    samples_with_results = ComputedFile.objects\
        .filter(s3_bucket__isnull=True, result__samples__isnull=False)\
        .values_list("result__samples", flat=True)

    sample_ids = set(samples_with_results) | set(samples_with_computed_files)

    eligible_samples = Sample.objects.filter(id__in=sample_ids)

    total_samples_queued = requeue_samples(eligible_samples)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: AlexsLemonade/refinebio
Commit Name: 5fbce37c1f6f078e410979b69c8f97a42d89de28
Time: 2019-09-23
Author: arielsvn@gmail.com
File Name: foreman/data_refinery_foreman/foreman/management/commands/retry_samples.py
Class Name:
Method Name: retry_computed_files_not_uploaded


Project Name: AlexsLemonade/refinebio
Commit Name: 48e474698d2ec4f3ea7bf8c31c7f0547df2e9ecb
Time: 2019-11-01
Author: arielsvn@gmail.com
File Name: common/data_refinery_common/job_lookup.py
Class Name:
Method Name: determine_downloader_task


Project Name: cmu-db/ottertune
Commit Name: 9e9c9c7510b6b50c221cefdde9d30c3b058a2620
Time: 2019-12-05
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/models.py
Class Name: SessionKnobManager
Method Name: get_knobs_for_session