Skip to content

Commit

Permalink
Enable automatic "soft-restart" of workers on config changes
Browse files Browse the repository at this point in the history
This way workers are restarted as soon as possible without
interfering currently running jobs when the worker config changes.

The restart of the services is triggered by a special systemd
unit. The salt configuration merely enables that unit. Hence this
change depends on the following upstream change:
os-autoinst/openQA#3666

Relevant tickets:
* https://progress.opensuse.org/issues/80910
* https://progress.opensuse.org/issues/80908#note-8
  • Loading branch information
Martchus committed Feb 5, 2021
1 parent 3197559 commit 49f4df9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openqa/worker.sls
Expand Up @@ -171,6 +171,10 @@ openqa-worker-auto-restart@{{ i }}:
- pkg: worker-openqa.packages
- stop_and_disable_all_workers
{% endif %}

openqa-soft-restart-worker@{{ i }}.path:
service.running:
- enable: True
{% endfor %}

openqa-worker.target:
Expand Down

0 comments on commit 49f4df9

Please sign in to comment.