#!/bin/bash
# 阶段1：5 个 catName 严格串行（并行会互相覆盖同一 origin_data 文件）
cd /data/news/scripts
LOG=/data/news/logs/flow_0926_stage1.log
: > "$LOG"
for c in brand_hotspots vehicle_hotspots social_hotspots hyundai_buzz_topics_domestic hyundai_buzz_topics_international; do
  echo "########## $c ##########" | tee -a "$LOG"
  python3 get_brand_from_dify_v3.py "$c" 2>&1 | tee -a "$LOG"
  echo "-- exit=$? --" | tee -a "$LOG"
done
echo "STAGE1_DONE" | tee -a "$LOG"
