Skip to content

Commit

Permalink
log sacct failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ankona committed Aug 1, 2023
1 parent 4c741be commit 2cc59e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smartsim/_core/launcher/slurm/slurmLauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ def _get_slurm_step_id(step: Step, interval: int = 2) -> str:
step_id: t.Optional[str] = None
trials = CONFIG.wlm_trials
while trials > 0:
output, _ = sacct(["--noheader", "-p", "--format=jobname,jobid"])
output, err = sacct(["--noheader", "-p", "--format=jobname,jobid"])
if err:
logger.warning("An error occurred while calling sacct:", err)

step_id = parse_step_id_from_sacct(output, step.name)
if step_id:
break
Expand Down

0 comments on commit 2cc59e0

Please sign in to comment.