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.
This commit is contained in:
@ -108,5 +108,5 @@
|
||||
async: "{{ postgres_import_wait_time }}"
|
||||
poll: 10
|
||||
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
|
||||
|
@ -79,7 +79,7 @@
|
||||
async: "{{ postgres_vacuum_wait_time }}"
|
||||
poll: 10
|
||||
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
|
||||
|
||||
# Intentionally show the results
|
||||
|
Reference in New Issue
Block a user