Skip to content

Commit

Permalink
updated reprocessing of the files
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Jan 7, 2025
1 parent 7414e1e commit db77732
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions bedboss/bbuploader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,15 @@ def _upload_gse(
)
sa_session.add(sample_status)
sa_session.commit()
else:
if sample_status.status == STATUS.SUCCESS and not overwrite:
_LOGGER.info(
f"Skipping: '{required_metadata.sample_name}' - already processed"
)
uploaded_files.append(sample_status.genome)
project_status.number_of_processed += 1
continue


sample_status.genome = required_metadata.ref_genome
# to upload files only with a specific genome
Expand Down
4 changes: 2 additions & 2 deletions bedboss/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def calculate_time(func):
@wraps(func)
def wrapper(*args, **kwargs):

print(f"--> Arguments: {args}")
print(f"--> Keyword arguments: {kwargs}")
# print(f"--> Arguments: {args}")
# print(f"--> Keyword arguments: {kwargs}")

start_time = time.time()
result = func(*args, **kwargs)
Expand Down

0 comments on commit db77732

Please sign in to comment.