Skip to content
Roboto
Esc
↑↓navigate↵open⌘Jpreview
On this page

roboto.domain.platform_events.once_per

Module Contents

OncePer

class roboto.domain.platform_events.once_per.OncePer#View Source

Bases: roboto.compat.StrEnum

A grain an event offers for deduplication: the occurrence itself, or an entity the event names.

This is an event’s vocabulary, not a trigger’s. Each PlatformEventType declares the grains it supports, and how an occurrence projects onto each, in its PlatformEventDescriptor; that projection is what turns one occurrence into one idempotency token. A trigger only chooses among the grains its events offer, and its choice must be legal for every event type it subscribes to.

Attributes

OncePer.Dataset

Dataset = 'dataset' #

Fire once per dataset.

OncePer.Event

Event = 'event' #

Fire once per event, the annotation marking a span of time on your data.

OncePer.File

File = 'file' #

Fire once per file.

OncePer.Invocation

Invocation = 'invocation' #

Fire once per action invocation.

OncePer.Occurrence

Occurrence = 'occurrence' #

Fire on every occurrence; nothing collapses. Supported by every event type.

Was this page helpful?