Skip to main content

Module named_events

Module named_events 

Source
Expand description

POST /api/v1/events and GET /api/v1/events (decision 354): events posted by outside systems, which EventNamed triggers and waiting steps act on. Posting needs what triggering a run needs: a signed-in user or token (schedr has no permissions of its own).

Structs§

EventsQuery
Which posted events.

Constants§

AT_TOLERANCE
How far ahead of now an event’s at may be, for clock skew: as the master’s --for.
DEFAULT_MAX_EVENT_SIZE
[events] max_size unless set: 1 MiB.
EVENT_BODY_ROOM
What a post’s body may hold besides its data: the name, the key (1 KiB), the time, the JSON.

Functions§

list_events
The events posted, newest first, their data masked.
post_event
Post an event: each post is one, a repeat of a name and key too; a trigger starts one run per key, a waiting step matches one posted since its run started. Sent again with the same Idempotency-Key, it is the event stored the first time.