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

Before Change


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, 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: 5

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: brian-team/brian2
Commit Name: 724ad2c1d5f631d40b757766f5ae7dca308542e2
Time: 2014-02-25
Author: marcel.stimberg@ens.fr
File Name: brian2/codegen/generators/base.py
Class Name: CodeGenerator
Method Name: arrays_helper


Project Name: pantsbuild/pants
Commit Name: a5edfe0b335c6bb59feea50fc6822c70cc76a880
Time: 2016-05-09
Author: yujieproject@gmail.com
File Name: src/python/pants/engine/legacy/globs.py
Class Name: LazyFilesContent
Method Name: _file_contents