ErrorsBackground work · rule
schedule.run_invalid
Schedule's run: isn't a call of an action in its own domain with no arguments.
Area 12, Background work; not declinable; the next step is usually the agent's.
run: calls an action of the schedule's own domain with nothing; the time is clock.now, fixed for the run:
type RemindAt = Instant {}action remind(at: RemindAt) -> Unit {}/// Sends the reminders due.schedule reminders { every: 15m run: remind(RemindAt(clock.now))}
error A schedule passes nothing to remind
--> main.jadpo:8:16
|8 | run: remind(RemindAt(clock.now)) | ^^^^^^^^^^^^^^^^^^^^^ arguments given
- reason
run:calls one action of the schedule's own domain with no arguments; the action readsclock.now, fixed for the run, and queries for anything else, so all the logic lives in the action.- next
- Write
run: remind(), and letremindreadclock.nowand its queries for what it needs (agent) - rule
- schedule.
run_ invalid - help
- https://jadpo.
dev/docs/errors/schedule. run_ invalid
Markdown for agents: /docs/errors/schedule.run_invalid.md.Built from Jadpo main at aee2e8f.