fix(deploy): health-watch 사이드카 기동 실패 2건 수정
- compose 명령의 $((10#..)) 는 dash 미지원 → 재시작 루프. 선행 0 제거 후 정수 비교 - Jenkins 가 scripts/ 를 복사하지 않아 마운트 대상 health_watch.py 부재 → Created 상태로 정지 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y83Za98XsNw9zuA4FTUytN
This commit is contained in:
@@ -199,8 +199,8 @@ services:
|
||||
- |
|
||||
while true; do
|
||||
k=$$(date -u -d '+9 hours' '+%u %H')
|
||||
dow=$${k% *}; hh=$${k#* }
|
||||
if [ "$$dow" -le 5 ] && [ "$$((10#$$hh))" -ge 9 ] && [ "$$((10#$$hh))" -le 15 ]; then
|
||||
dow=$${k% *}; hh=$${k#* }; hh=$${hh#0}
|
||||
if [ "$$dow" -le 5 ] && [ "$$hh" -ge 9 ] && [ "$$hh" -le 15 ]; then
|
||||
python /app/health_watch.py || true
|
||||
date -u '+%Y-%m-%dT%H:%M:%SZ' > /state/last_run
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user