ErrorsBackground work · rule
subscriber.item_invalid
Subscriber holds an item it doesn't take, gives one twice or leaves out on: or run:.
Area 12, Background work; not declinable; the next step is usually the agent's.
A subscriber holds on:, run: and retry: only:
type Note = Text { max_length: 200}entity Reminder { id: Uuid note: Note sent: Bool policy: { create: [Access.authenticated] read: [Access.system] update: [Access.system] }}type ReminderDue = Event { reminder_id: Reminder.id}action send_reminder(reminder_id: Reminder.id) fails ReminderNotFound -> Unit { attempt Reminder.update(reminder_id) { set: { sent: true } }}subscriber send_due { on: ReminderDue run: send_reminder(event.reminder_id) timeout: 5m}
error timeout isn't something a subscriber holds
--> main.jadpo:32:5
|32 | timeout: 5m | ^^^^^^^ not a subscriber item
- reason
- A subscriber names the event it listens for with
on:and the action it runs withrun:, and may change how it is retried withretry: { attempts: within: }; nothing else. - next
- Write
on: <Event>andrun: <action>(event), once each (agent) - rule
- subscriber.
item_ invalid - help
- https://jadpo.
dev/docs/errors/subscriber. item_ invalid
Markdown for agents: /docs/errors/subscriber.item_invalid.md.Built from Jadpo main at aee2e8f.