Skip to content

Commit 438ed3a

Browse files
committed
adjust check_slurm logic to deal with idle* state
1 parent d2e18d0 commit 438ed3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ansible/ci/check_slurm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
shell: 'sinfo --noheader --format="%N %P %a %l %D %t" | sort' # using --format ensures we control whitespace: Partition,partition_state,max_jobtime,num_nodes,node_state,node_name
77
register: sinfo
88
changed_when: false
9-
until: "'boot' not in sinfo.stdout_lines"
10-
retries: 5
11-
delay: 10
9+
until: not ("boot" in sinfo.stdout or "idle*" in sinfo.stdout)
10+
retries: 10
11+
delay: 5
1212
- name: Check nodes have expected slurm state
1313
assert:
1414
that: sinfo.stdout_lines == expected_sinfo

0 commit comments

Comments
 (0)