fix: address code review feedback — add comment for threshold, trailing newline
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
parent
9a7a99a409
commit
599681fc04
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
|
|
||||||
echo "daily-maintenance 最后运行:$LAST_RUN"
|
echo "daily-maintenance 最后运行:$LAST_RUN"
|
||||||
|
|
||||||
# 计算距上次运行超过 26 小时则告警
|
# 计算距上次运行的时间差,超过 26 小时则告警(24h 调度周期 + 2h 缓冲)
|
||||||
node -e "
|
node -e "
|
||||||
const last = new Date('$LAST_RUN');
|
const last = new Date('$LAST_RUN');
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
|
@ -67,3 +67,4 @@ jobs:
|
||||||
\"处理状态\": {\"status\": {\"name\": \"待处理\"}}
|
\"处理状态\": {\"status\": {\"name\": \"待处理\"}}
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue