ai_member_xiaokui/scripts/sync_feishu_feedback_wrapper.sh
2026-05-09 08:10:02 +08:00

25 lines
709 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 任务名称飞书问题反馈每日全量分发步骤7全部问题
# 执行时间:每天 10:00
# 归属 Agent小葵 xiaokui
set -e
export PATH=/root/.nvm/versions/node/v24.14.0/bin:$PATH
LOG_FILE="/var/log/xiaokui_feedback_dispatch_daily.log"
log() {
echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
}
log "=== 每日全量分发开始 ==="
# 计算昨天的日期,分发昨天的全量问题
YESTERDAY=$(date -d "yesterday" +%Y-%m-%d)
cd /root/.openclaw/workspace-xiaokui
python3 skills/feishu-feedback-sync/scripts/sync_feishu_feedback.py --date "$YESTERDAY" --steps 7 --dispatch-mode all >> "$LOG_FILE" 2>&1
log "=== 每日全量分发结束 ==="
exit 0