Skip to content

Commit b9f9d16

Browse files
authored
Retry slurmd restarts on change (#171)
There was a race conditions between slurmctld starting up and slurmd. This adds a few retries to make it more robust.
1 parent a599130 commit b9f9d16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

handlers/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
service:
5959
name: "slurmd"
6060
state: restarted
61+
retries: 5
62+
register: slurmd_restart
63+
until: slurmd_restart is success
64+
delay: 30
6165
when:
6266
- openhpc_slurm_service_started | bool
6367
- openhpc_enable.batch | default(false) | bool

0 commit comments

Comments
 (0)