Expand description
The generated messages and the Master service (client and server).
Modules§
- master_
client - Generated client implementations.
- master_
message - Nested message and enum types in
MasterMessage. - master_
server - Generated server implementations.
- parse_
result_ part - Nested message and enum types in
ParseResultPart. - worker_
message - Nested message and enum types in
WorkerMessage.
Structs§
- ApiAnswer
- The answer to an
ApiCall: the HTTP status and body the router gave, or the master’s refusal (403 for a route off the list or a caller that isn’t the worker’s). - ApiCall
- A REST request a task (or a trigger, a wait step) makes through its agent, with no URL or
token (M4.11h, B2): the master runs it through the same router as the task’s identity, on an
allow-list of routes, and answers with
ApiAnswer. Sent again on a new stream until answered (request_idand the request’sIdempotency-Keymake that safe). - Assign
Parse - Assign
Task - Assign
Trigger - Run a DAG’s trigger:
instance_idnames this run of it, and everything it sends. - Cancel
Attempt - Cancel
Trigger - Cleanup
Only - Cleanup
Result - Code
Version Changed - A root’s content hash changed (after the settle time).
A root’s reported hash changed. An empty
content_hashwithdraws the root: the worker no longer offers it (decision 303: a DAG root using a script root it lacks). - Connection
Job schedr connections check/test(decision 174): one root’s connections, rendered or opened on this worker beside its tasks (no slot), one job at a time.- Connection
JobDone - A connection job’s answer.
- Connection
Test - DagFile
Ref - Deregister
- Clean deregistration before the agent exits (or idles after an admin drain).
- Draining
- SIGTERM received, or an admin drain: stop assigning to this worker.
- Fetch
Inputs Request - Finished
- Finished
Ack - Handles
Added - Cleanup handles an attempt registered, already masked, for a cleanup on another worker (decision 242): sent as they are registered, all of them again after a reconnect.
- Heartbeat
- Heartbeat
Ack - Sent as a heartbeat arrives, while this master leads: how a worker tells a silent network from
a quiet master, with no other message due.
Its
clock.heard_sequencenames the heartbeat it answers. - Import
Error - Why a DAG file couldn’t be imported (schedr-model ErrorSummary).
- Input
Chunk - Journal
Decision - Journal
Entry - Master
Clock - The master’s clock as a message left it (B225, B228). Master time is the leading master’s monotonic clock, one timeline per master process: every deadline the master and its workers must agree on is a master time, and no decision reads a wall clock.
- Master
Message - Node
Usage - A schedr process’s memory and CPU, and its container’s (decision 463).
- Parse
Result - Parse
Result Ack - Parse
Result Part - One message of a parse upload: the header first, then the files.
- Parsed
File - Process
Usage - Protocol
Version - Register
- Sent on every connect.
- Registered
- Rejected
- Root
Hash - Root
Uses - The script roots a DAG root’s current parse used (decision 304): a worker folds their hashes into the hash it reports for the DAG root (decision 301).
- RunInfo
- Script
Uses - Every DAG root’s script roots, sent to each worker when they change; it replaces what was sent before (a root left out uses none).
- Started
- The attempt was accepted and its process started. Sent before the process exists, with
spawn; a task forked from a fork server sends it again withforkonce it runs (the master keeps the first start time and takes the method). - Task
Ended - A task with a cleanup: its process ended and the cleanup starts (decision 229).
Finishedfollows, with the same result and the cleanup’s. - Task
Memory - A running task’s memory, named.
- Timing
- Timing is owned by the master’s configuration so all workers behave the same.
- Trigger
Event - What a trigger found: the master stores it, starts a run for a new key, and acknowledges. Sent again until acknowledged: repeated keys are dropped.
- Trigger
Event Ack - Trigger
Poked - A trigger ended on this worker: it raised, its generator returned, or it was stopped. How a poke trigger’s calls have gone: sent when that changes, and with a heartbeat if not.
- Trigger
Stopped - Warnings
- What is wrong with the worker now, all of it: sent after every Register and whenever it changes; each replaces the last.
- Watcher
Host - A process running a worker’s wait steps, or a code set whose hosts were lost: for people.
- Worker
Clock - The worker’s side of a stream’s numbering, as
MasterClock’ssequenceandheard_sequenceare the master’s (B240). No clock reading: the worker keeps its own. - Worker
Message - Worker
Usage - A worker’s memory by part (decision 463): the agent’s own process, then what it started.
- Worker
Warning