From 79eebdc8e512fe545021d7a9d6e98dbff154995d Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 17 Aug 2026 00:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=A4=87=E4=BB=BD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=81=A5=E5=BA=B7=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/backup-status.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/backup-status.sh b/scripts/backup-status.sh index 24e6917..8b6043a 100755 --- a/scripts/backup-status.sh +++ b/scripts/backup-status.sh @@ -61,7 +61,9 @@ write_status() { # shellcheck disable=SC1090 source "${status_dir}/last-job.env" fi - if [[ -n "${local_complete}" && -n "${remote_complete}" && -n "${binlog_file}" ]]; then + if [[ "${job_status}" == 'failed' ]]; then + health='warning' + elif [[ -n "${local_complete}" && -n "${remote_complete}" && -n "${binlog_file}" ]]; then health='healthy' else health='warning'