Skip to main content

Module notify

Module notify 

Source
Expand description

Notifications in DAG JSON (decisions 408, 409, 417-423): which channels a DAG tells of which events, the channels a DAG defines itself, and message bodies as data.

A body is JSON whose strings may be templates. A DAG writes them as t-strings over schedr.notify placeholders; the server configuration as "{name}" strings. Both arrive here as the same Body: text parts and references, which the master fills value by value. Nothing in a body is code, and filling one never runs anything.

Structs§

NotifyEntry
One channel a DAG notifies (notify=[...] or notify={channel: [...]}).
Ref
A placeholder, and a path into its value (data['rows'], decision 423).
WebhookChannel
A webhook a DAG defines (decision 425): its URL must start with one of [notifications] dag_urls, and it carries no secrets (its URL is in the DAG file).

Enums§

Body
A message body (decision 417): JSON, with values filled in when a notification is queued.
ChannelRef
A channel: one the server configuration defines (named by a string in Python), or one the DAG defines itself (an object).
NotifyEvent
An event a channel can be told of (decision 408; Notify in Python, decision 409).
Part
A piece of a Body::Template.
PathKey
A step of a Ref’s path.
Placeholder
The values a body can use (decision 417).