Skip to content

Commit

Permalink
BUG: Fix signature for _run_task
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail committed Mar 22, 2024
1 parent 80c7b02 commit 14d1e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydra/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def can_resume(self):
return self._can_resume

@abc.abstractmethod
def _run_task(self):
def _run_task(self, environment=None):
pass

@property
Expand Down Expand Up @@ -1329,7 +1329,7 @@ async def _run(self, submitter=None, rerun=False, **kwargs):
self._check_for_hash_changes()
return result

async def _run_task(self, submitter, rerun=False):
async def _run_task(self, submitter, rerun=False, environment=None):
if not submitter:
raise Exception("Submitter should already be set.")
for nd in self.graph.nodes:
Expand Down

0 comments on commit 14d1e19

Please sign in to comment.