| # LEM-Eval submit watchdog — ensures the continuous `loop` worker is | |
| # alive. The real work is done by `lem-eval.sh loop` running back-to-back | |
| # on each target; this cron just restarts the loop if it died. | |
| # | |
| # Runs at :07 past the hour to match the legacy LEM-benchmarks cadence | |
| # (back when the Ollama pipeline did hourly git push instead of a | |
| # continuous loop). The 1h cadence is the maximum gap the machine can | |
| # be idle if the worker crashes — after that, this cron resurrects it. | |
| # | |
| # Install with: | |
| # crontab -l | cat - cron/submit.cron | crontab - | |
| 7 * * * * cd $HOME/PycharmProjects/LEM-Eval && pgrep -fu "$USER" "lem-eval.sh loop" >/dev/null || nohup ./lem-eval.sh loop >> /tmp/lem-eval.log 2>&1 & | |