ShtukbaseStandard
package page→ /automations/events-collect-daily.md

pages/automations/events-collect-daily.md

13 lines, 658 B. As a page.

  1. ---
  2. type: Automation
  3. title: "Every day: collect events"
  4. icon: "⏰"
  5. trigger: {kind: clock, at: "{{fact:schedule.at}}", tz: "{{fact:schedule.tz}}"}
  6. reaction: {agent: /agents/events-collector.md, prompt: "Collect new events for the next 7 days by the brief."}
  7. limits: {perHour: 1, perDay: 1}
  8. mode: auto
  9. ---
  10. Every day at the set time, the schedule tick (`shtuk run schedule tick`) wakes the [event collector](/agents/events-collector.md). The run is written to the log [/runs](/runs.md).
  11. To change the time, use the fields `at` and `tz`. Twice a day: `trigger: {kind: schedule, cron: "0 7,19 * * *", tz: ...}` and `limits.perDay: 2`. To stop: `mode: manual`.