feat(worktime): add automatic self-heal timer for zero-activity regressions
This commit is contained in:
@@ -375,6 +375,14 @@
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Установить скрипт AW worktime autoheal
|
||||
ansible.builtin.copy:
|
||||
src: "{{ aw_repo_root }}/aw-server/aw-worktime-autoheal.sh"
|
||||
dest: /usr/local/bin/aw-worktime-autoheal.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Установить скрипт aw-health-check
|
||||
ansible.builtin.copy:
|
||||
src: "{{ aw_repo_root }}/aw-server/health-check.sh"
|
||||
@@ -399,6 +407,22 @@
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Установить systemd unit AW worktime autoheal
|
||||
ansible.builtin.copy:
|
||||
src: "{{ aw_repo_root }}/aw-server/aw-worktime-autoheal.service"
|
||||
dest: /etc/systemd/system/aw-worktime-autoheal.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Установить systemd timer AW worktime autoheal
|
||||
ansible.builtin.copy:
|
||||
src: "{{ aw_repo_root }}/aw-server/aw-worktime-autoheal.timer"
|
||||
dest: /etc/systemd/system/aw-worktime-autoheal.timer
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Перезагрузить systemd после установки AW worktime API
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
@@ -435,6 +459,18 @@
|
||||
state: started
|
||||
failed_when: false
|
||||
|
||||
- name: Включить и перезапустить AW worktime autoheal timer
|
||||
ansible.builtin.systemd:
|
||||
name: aw-worktime-autoheal.timer
|
||||
enabled: true
|
||||
state: restarted
|
||||
|
||||
- name: Выполнить разовый прогон AW worktime autoheal
|
||||
ansible.builtin.systemd:
|
||||
name: aw-worktime-autoheal.service
|
||||
state: started
|
||||
failed_when: false
|
||||
|
||||
- name: Применить хотфиксы compiled JS чанков (Trends, Timespiral, Category helper)
|
||||
ansible.builtin.command:
|
||||
cmd: "/opt/activitywatch/aw-server/apply_webui_ru_patch.sh"
|
||||
|
||||
Reference in New Issue
Block a user