Преглед изворни кода

Do not wait needlessly when vacuuming or importing Postgres

pull/2223/head
Slavi Pantaleev пре 3 година
родитељ
комит
a4662660d2
2 измењених фајлова са 6 додато и 2 уклоњено
  1. +3
    -1
      roles/matrix-postgres/tasks/import_postgres.yml
  2. +3
    -1
      roles/matrix-postgres/tasks/run_vacuum.yml

+ 3
- 1
roles/matrix-postgres/tasks/import_postgres.yml Прегледај датотеку

@@ -49,8 +49,10 @@
name: matrix-postgres
state: started
daemon_reload: true
register: matrix_postgres_import_start_result

- name: Wait a bit, so that Postgres can start
- when: matrix_postgres_import_start_result.changed | bool
name: Wait a bit, so that Postgres can start
ansible.builtin.wait_for:
timeout: "{{ postgres_start_wait_time }}"
delegate_to: 127.0.0.1


+ 3
- 1
roles/matrix-postgres/tasks/run_vacuum.yml Прегледај датотеку

@@ -28,8 +28,10 @@
name: matrix-postgres
state: started
daemon_reload: true
register: matrix_postgres_vacuum_start_result

- name: Wait a bit, so that Postgres can start
- when: matrix_postgres_vacuum_start_result.changed | bool
name: Wait a bit, so that Postgres can start
ansible.builtin.wait_for:
timeout: "{{ postgres_start_wait_time }}"
delegate_to: 127.0.0.1


Loading…
Откажи
Сачувај