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)