Przeglądaj źródła

Fix import-postgres/run-postgres-vacuum failures being suppressed

We were only reporting failures for when the async task didn't finish.
We also need to report a failure for when the task finished, but
returned a non-zero exit code.
pull/2223/head
Slavi Pantaleev 3 lat temu
rodzic
commit
9fb21b89a8
3 zmienionych plików z 3 dodań i 3 usunięć
  1. +1
    -1
      roles/matrix-postgres/tasks/import_postgres.yml
  2. +1
    -1
      roles/matrix-postgres/tasks/run_vacuum.yml
  3. +1
    -1
      roles/matrix-synapse/tasks/rust-synapse-compress-state/compress_room.yml

+ 1
- 1
roles/matrix-postgres/tasks/import_postgres.yml Wyświetl plik

@@ -108,5 +108,5 @@
async: "{{ postgres_import_wait_time }}" async: "{{ postgres_import_wait_time }}"
poll: 10 poll: 10
register: matrix_postgres_import_postgres_command_result register: matrix_postgres_import_postgres_command_result
failed_when: not matrix_postgres_import_postgres_command_result.finished
failed_when: not matrix_postgres_import_postgres_command_result.finished or matrix_postgres_import_postgres_command_result.rc != 0
changed_when: matrix_postgres_import_postgres_command_result.finished and matrix_postgres_import_postgres_command_result.rc == 0 changed_when: matrix_postgres_import_postgres_command_result.finished and matrix_postgres_import_postgres_command_result.rc == 0

+ 1
- 1
roles/matrix-postgres/tasks/run_vacuum.yml Wyświetl plik

@@ -79,7 +79,7 @@
async: "{{ postgres_vacuum_wait_time }}" async: "{{ postgres_vacuum_wait_time }}"
poll: 10 poll: 10
register: matrix_postgres_synapse_vacuum_result register: matrix_postgres_synapse_vacuum_result
failed_when: not matrix_postgres_synapse_vacuum_result.finished
failed_when: not matrix_postgres_synapse_vacuum_result.finished or matrix_postgres_synapse_vacuum_result.rc != 0
changed_when: matrix_postgres_synapse_vacuum_result.finished and matrix_postgres_synapse_vacuum_result.rc == 0 changed_when: matrix_postgres_synapse_vacuum_result.finished and matrix_postgres_synapse_vacuum_result.rc == 0


# Intentionally show the results # Intentionally show the results


+ 1
- 1
roles/matrix-synapse/tasks/rust-synapse-compress-state/compress_room.yml Wyświetl plik

@@ -21,7 +21,7 @@
async: "{{ matrix_synapse_rust_synapse_compress_state_compress_room_time }}" async: "{{ matrix_synapse_rust_synapse_compress_state_compress_room_time }}"
poll: 10 poll: 10
register: matrix_synapse_rust_synapse_compress_state_compress_room_command_result register: matrix_synapse_rust_synapse_compress_state_compress_room_command_result
failed_when: not matrix_synapse_rust_synapse_compress_state_compress_room_command_result.finished
failed_when: not matrix_synapse_rust_synapse_compress_state_compress_room_command_result.finished or matrix_synapse_rust_synapse_compress_state_compress_room_command_result.rc != 0
changed_when: matrix_synapse_rust_synapse_compress_state_compress_room_command_result.finished and matrix_synapse_rust_synapse_compress_state_compress_room_command_result.rc == 0 changed_when: matrix_synapse_rust_synapse_compress_state_compress_room_command_result.finished and matrix_synapse_rust_synapse_compress_state_compress_room_command_result.rc == 0


- ansible.builtin.debug: - ansible.builtin.debug:


Ładowanie…
Anuluj
Zapisz