Skip to content

Commit

Permalink
use pipestat to set status to 'waiting' if rerunning a failed sample. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Oct 5, 2023
1 parent e45c0f6 commit 6ccebc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions looper/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,11 @@ def add_sample(self, sample, rerun=False):
sample_statuses = psms[self.pl_name].get_status(
record_identifier=sample.sample_name
)
if sample_statuses == "failed" and rerun is True:
psms[self.pl_name].set_status(
record_identifier=sample.sample_name, status_identifier="waiting"
)
sample_statuses = "waiting"
sample_statuses = [sample_statuses] if sample_statuses else []
else:
sample_statuses = fetch_sample_flags(self.prj, sample, self.pl_name)
Expand Down

0 comments on commit 6ccebc6

Please sign in to comment.