git action clone 추가

This commit is contained in:
kyy
2025-09-04 15:35:13 +09:00
parent df860fc701
commit f1f82aa1eb
8 changed files with 125 additions and 14 deletions

View File

@@ -19,18 +19,6 @@ LOG_FILE="${LOG_DIR}/report_${ABSOLUTE_RANGE}_${TS}.log"
echo "[OK] Started background job."
echo "[OK] Logging to ${LOG_FILE}"
ABSOLUTE_RANGE=24h # 24h
TS="$(date +%Y%m%d_%H%M%S)"
LOG_FILE="${LOG_DIR}/report_${ABSOLUTE_RANGE}_${TS}.log"
(cd src && python3 -m report_table \
--range "${ABSOLUTE_RANGE}") \
>> "${LOG_FILE}" 2>&1 &
echo "[OK] Started background job."
echo "[OK] Logging to ${LOG_FILE}"
# # crontab -e
# # 매일 09:00 KST에 지난 24시간 보고
# 0 9 * * * /usr/bin/env bash -lc 'cd /opt/monitor && /usr/bin/python3 grafana_dash_pull_and_alert.py --range 24h'