Skip to content

Commit

Permalink
timeout when nodes_per_block=1
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Jul 28, 2024
1 parent 9670575 commit ac8763f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psiflow/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def create_executor(self, path: Path, **kwargs) -> ParslExecutor:

# ensure proper scale in
if getattr(self.parsl_provider, "nodes_per_block", 1) > 1:
worker_options.append("--idle-timeout={}".format(20))
else:
worker_options.append("--idle-timeout={}".format(int(1e6)))
else:
worker_options.append("--idle-timeout={}".format(20))

executor = MyWorkQueueExecutor(
label=self.name,
Expand Down

0 comments on commit ac8763f

Please sign in to comment.