Skip to content

Commit

Permalink
Merge pull request #3022 from vkarak/bugfix/slurm-lazy-eval-nodelist
Browse files Browse the repository at this point in the history
[bugfix] Evaluate Slurm job nodelist lazily
  • Loading branch information
vkarak authored Nov 8, 2023
2 parents 3e3f4c5 + 8f22223 commit 7797ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reframe/core/schedulers/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def __init__(self, *args, **kwargs):

@property
def nodelist(self):
# Redefine nodelist so as to generate it from the nodespec
if self._nodelist is None and self._nodespec is not None:
# Generate the nodelist only after the job is finished
if slurm_state_completed(self.state):
completed = osext.run_command(
f'scontrol show hostname {self._nodespec}', log=False
)
Expand Down

0 comments on commit 7797ef1

Please sign in to comment.