LEM-Eval / cron /submit.cron
Snider
fix(worker): continuous loop + cron as watchdog, not scheduler
66ed84c
raw
history blame contribute delete
712 Bytes
# 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 &