13 lines
486 B
Bash
13 lines
486 B
Bash
#!/bin/bash
|
|
# Turn-based curator cron - runs every minute to check if 10 turns reached
|
|
|
|
SCRIPT_DIR="/root/.openclaw/workspace/.projects/true-recall-v2/tr-continuous"
|
|
|
|
# Check if enough turns accumulated
|
|
/usr/bin/python3 "${SCRIPT_DIR}/curator_turn_based.py" --threshold 10 --status 2>/dev/null | grep -q "Ready to curate: YES"
|
|
|
|
if [ $? -eq 0 ]; then
|
|
# Run curation
|
|
/usr/bin/python3 "${SCRIPT_DIR}/curator_turn_based.py" --threshold 10 --execute 2>&1 | logger -t turn-curator
|
|
fi
|