Commit 9d65c22c by Feanil Patel

Retry the supervisor restart.

This is needed because there is a race condition between the stop and
start of supervisor.  The stop will not wait for all child process to
have shutdown by design because this behavior is needed for lms workers.

This means that when we try to do a stop and start together, and the first process
has not fully stopped, we get a failure in the startup of the second process.

There is no obvious way to deal with this in systemd so dealing with it here
instead.
parent 14bd0357
...@@ -10,3 +10,6 @@ ...@@ -10,3 +10,6 @@
service: service:
name: "{{ supervisor_service }}" name: "{{ supervisor_service }}"
state: restarted state: restarted
register: rc
until: rc|success
retries: 5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment