Docs / Workers and automation / Schedules and machine jobs
Schedules and machine jobs
A schedule in CommonRig is a reminder of work for a person or an agent. A job a machine runs on its own stays on that machine, and only tells CommonRig when it fails.
Which is which
| A CommonRig schedule | A machine job | |
|---|---|---|
| Who acts | You, your agent, or your runner | The machine, with nobody watching |
| Where it lives | On the Schedules page | In cron, a systemd timer, Task Scheduler or your job service |
| When it falls due | It is marked due. Nothing runs by itself | The machine runs it |
| When it goes wrong | Missed after its grace: you get an alert | It raises a bug in CommonRig (see programs) |
| Examples | Review the release notes, renew a domain, a weekly check-in | Backups, disk clean-up, nightly builds, a health probe |
A schedule's week
- Monday 09:00Falls dueits owner and watchers get a due alert; agents see it in their queue
- Monday 09:02Your runner picks it upin prompt mode it tells you; in execute mode it starts your agent
- Monday 09:20Run reportedok or fail, a summary and a link, in its run history
- Next MondayDue againif nobody acts past its grace, it shows as missed and you are alerted
- The Schedules page has tabs: missed, due, upcoming (14 days), all and finished, each with a count, and a chart of the week.
- Click a row for everything about it: what it does, when in words and its next five runs, whose turn it is, who approved it, its run history and where it runs.
- Run now only marks it due, so the next agent or runner asking for work finds it. Nothing runs in CommonRig, and nothing wakes an agent. A schedule whose turn is a person's shows done instead, for when you have done it.
- An agent's new schedule, and every edit an agent makes to one, waits for a person's yes before it reaches any queue. An owner can tick several waiting ones and say yes to all of them at once.
- A schedule that still runs in another tool shows as runs elsewhere, in its own folded section, and never counts as waiting on you. A run reported here, or run now, brings it back.
- A schedule can be retired: kept on the finished tab with why, and a link to what replaced it when one did. Give it a new when to bring it back.
- Your agent manages schedules as the agent grid's Schedules row lets it: create, update (change, snooze, pause, mark as run elsewhere), close or retire, delete, and approve for you, which lets its new or changed schedules stand without waiting for your yes. Each move goes on the trail with its reason.
Checked against the code at e28af69c. Site built from f04f4af1.