You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading multiple fastq files, ENA's API ussually throws a timeout that makes the process to crash. upload_to_ena currently handles it by dividing the total number of samples into batches of 20 samples (size arbitrarily selected) but sometimes a timeout is sill thrown anyways so some sort of retry should be implemented
The text was updated successfully, but these errors were encountered:
for file in file_list:
if not self.upload_file_to_ena(file):
for _ in range(n):
if self.upload_file_to_ena(file):
uploaded_files.append(file)
break
else:
log.info("Unable to fetch %s from %s", file, folder)
failed_files.append(file)
return uploaded_files, failed_files
This code would try to upload, and if it fails, it would try again n times, breaking the loop if successful and printing an error message if it could not be uploaded
When uploading multiple fastq files, ENA's API ussually throws a timeout that makes the process to crash.
upload_to_ena
currently handles it by dividing the total number of samples into batches of 20 samples (size arbitrarily selected) but sometimes a timeout is sill thrown anyways so some sort of retry should be implementedThe text was updated successfully, but these errors were encountered: