File size: 678 Bytes
2739b3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
set -euo pipefail

# Continuous "thinking" pipeline runner.
# - Uses default thinking cache/output
# - Random-walk over chunks
# - No limit: processes all available chunks/questions; loop restarts after completion
#
# Stop with Ctrl+C.

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

# Load .env if present
if [[ -f "$ROOT_DIR/.env" ]]; then
  set -a
  source "$ROOT_DIR/.env"
  set +a
fi

while true; do
  PIPELINE_SEED_MODE=question-first \
  PIPELINE_RANDOM_WALK=1 \
  QUESTION_MAX_PER_CHUNK="${QUESTION_MAX_PER_CHUNK:-5}" \
  npm run pipeline -- --verbose

  echo "Run finished at $(date). Sleeping 10s before next loop..."
  sleep 10
done