Run an agent on a schedule

Kick off a job at a set time, a nightly dependency check, a morning triage pass, with plain cron on the machine.


When it helps

Some work is better on a clock than on your attention: open a pull request with the week's dependency bumps every Monday, or have an agent summarise the overnight CI failures before you log on.

Use cron

It is a normal Linux machine, so you schedule with cron. Point the job at a script that runs the agent with its task.

# every weekday at 07:00, triage the build
0 7 * * 1-5  cd ~/web && ./scripts/triage-ci.sh >> ~/triage.log 2>&1

Keep it awake

Cron only fires while the machine is running, and a running machine is on the meter. For a job that must run at a fixed time, leave the machine running (it is Cubs's cheapest state short of paused), or wake it just before. A scheduler that resumes a paused machine for a job is planned, not shipped; until then the machine has to be up for the clock to tick.