Skip to content

Commit

Permalink
remove false positives from job status
Browse files Browse the repository at this point in the history
MehmedGIT committed Mar 25, 2024
1 parent 76bafd6 commit c5c698a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/operandi_utils/hpc/executor.py
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ def check_slurm_job_state(self, slurm_job_id: str, tries: int = 3, wait_time: in
if output:
# Split the last line and get the second element,
# i.e., the state element in the requested output format
slurm_job_state = output[-1].split()[1]
slurm_job_state = output[-2].split()[1]
if slurm_job_state:
break
tries -= 1

0 comments on commit c5c698a

Please sign in to comment.