Contracts / createTimekeeper
Contract
createTimekeeper
Each minute, tells the Landlord which cartridge crons and which schedules are due.
Signature
createTimekeeper({ agents, schedules, fire })
// fire(req: FireRequest)
// { kind: 'cartridge', agentId }
// | { kind: 'schedule', schedule }Rules
- It never starts a run and never imports the control plane.
- The composition root is its only caller.
Where it appears
- Fire a cartridge cronTimekeeper
- Let an agent schedule itselfTimekeeper