Skip to content

Commit

Permalink
propagate bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Oct 24, 2024
1 parent 80c687b commit 05979c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions taca/analysis/analysis_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _process(run):
return
elif demultiplexing_status == "ongoing":
run.status = "demultiplexing"
if run.status_changed:
if run.status_changed():
run.update_statusdb()
return

Expand All @@ -100,14 +100,14 @@ def _process(run):
run.sync_metadata()
run.make_transfer_indicator()
run.status = "transferring"
if run.status_changed:
if run.status_changed():
run.update_statusdb()
# TODO: Also update statusdb with a timestamp of when the transfer started
run.transfer()
return
elif transfer_status == "ongoing":
run.status = "transferring"
if run.status_changed:
if run.status_changed():
run.update_statusdb()
logger.info(
f"{run} is being transferred. Skipping."
Expand All @@ -118,12 +118,12 @@ def _process(run):
run.remove_transfer_indicator()
run.update_transfer_log()
run.status = "transferred"
if run.status_changed:
if run.status_changed():
run.update_statusdb()
run.archive()
run.status = "archived"

if run.status_changed:
if run.status_changed():
run.update_statusdb()
else:
run.status = "transfer failed"
Expand Down

0 comments on commit 05979c7

Please sign in to comment.