Skip to content

Commit

Permalink
Better to keep action workers finish if any
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Dec 6, 2023
1 parent f7db08c commit ba6f3f0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tasks/stop-backend-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
- lighttpd
- copr-backend.target

- name: kill all background workers touching result dir
- name: kill all build workers potentially touching result dir
shell: |
systemctl kill copr-backend-build --signal=SIGKILL || :
systemctl kill copr-backend-action --signal=SIGKILL || :
- name: dont allocate new builders
replace:
Expand All @@ -31,9 +30,18 @@

- name: delete all resalloc resources
pause:
prompt: "Please (a) kill prunerepo tasks and (b) wait until there are no resalloc workers, then hit ENTER"
prompt: |
Please,
(a) wait for prunerepo processes, or kill them,
(b) wait for action processing workers, or kill them (preferably not)
(c) wait until there are no resalloc workers
then hit ENTER
when: stop_all_services is defined

- name: kill all action workers potentially touching result dir
shell: |
systemctl kill copr-backend-action --signal=SIGKILL || :
- name: stopping all backend services
service:
state: stopped
Expand Down

0 comments on commit ba6f3f0

Please sign in to comment.