Skip to content

Commit

Permalink
Fix default priority when loading experiments from a file
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Oct 13, 2023
1 parent 9900254 commit da20769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rnaseq_pipeline/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class SubmitExperimentsFromDataFrameMixin:
def requires(self):
df = self._retrieve_dataframe()
# using None, the worker will inherit the priority from this task for all its dependencies
return [SubmitExperimentToGemma(row.experiment_id, priority=100 if self.ignore_priority else row.get('priority'), rerun=row.get('data')=='resubmit')
return [SubmitExperimentToGemma(row.experiment_id, priority=100 if self.ignore_priority else row.get('priority', 100), rerun=row.get('data')=='resubmit')
for _, row in df.iterrows() if row.get('priority', 1) > 0]

class SubmitExperimentsFromFileToGemma(SubmitExperimentsFromDataFrameMixin, TaskWithOutputMixin, WrapperTask):
Expand Down

0 comments on commit da20769

Please sign in to comment.