Skip to content

Commit

Permalink
add --idle-timeout in case of single-node runs to improve scale in
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Jul 22, 2024
1 parent 00c07a7 commit 1efcad1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions psiflow/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ def create_executor(self, path: Path, **kwargs) -> ParslExecutor:
if self.gpu:
worker_options.append("--gpus={}".format(self.max_workers))

# 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)))

executor = MyWorkQueueExecutor(
label=self.name,
working_dir=str(path / self.name),
Expand Down

0 comments on commit 1efcad1

Please sign in to comment.