Skip to main content

Module pb

Module pb 

Source
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_id and the request’s Idempotency-Key make that safe).
AssignParse
AssignTask
AssignTrigger
Run a DAG’s trigger: instance_id names this run of it, and everything it sends.
CancelAttempt
CancelTrigger
CleanupOnly
CleanupResult
CodeVersionChanged
A root’s content hash changed (after the settle time). A root’s reported hash changed. An empty content_hash withdraws the root: the worker no longer offers it (decision 303: a DAG root using a script root it lacks).
ConnectionJob
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.
ConnectionJobDone
A connection job’s answer.
ConnectionTest
DagFileRef
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.
FetchInputsRequest
Finished
FinishedAck
HandlesAdded
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
HeartbeatAck
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_sequence names the heartbeat it answers.
ImportError
Why a DAG file couldn’t be imported (schedr-model ErrorSummary).
InputChunk
JournalDecision
JournalEntry
MasterClock
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.
MasterMessage
NodeUsage
A schedr process’s memory and CPU, and its container’s (decision 463).
ParseResult
ParseResultAck
ParseResultPart
One message of a parse upload: the header first, then the files.
ParsedFile
ProcessUsage
ProtocolVersion
Register
Sent on every connect.
Registered
Rejected
RootHash
RootUses
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
ScriptUses
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 with fork once it runs (the master keeps the first start time and takes the method).
TaskEnded
A task with a cleanup: its process ended and the cleanup starts (decision 229). Finished follows, with the same result and the cleanup’s.
TaskMemory
A running task’s memory, named.
Timing
Timing is owned by the master’s configuration so all workers behave the same.
TriggerEvent
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.
TriggerEventAck
TriggerPoked
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.
TriggerStopped
Warnings
What is wrong with the worker now, all of it: sent after every Register and whenever it changes; each replaces the last.
WatcherHost
A process running a worker’s wait steps, or a code set whose hosts were lost: for people.
WorkerClock
The worker’s side of a stream’s numbering, as MasterClock’s sequence and heard_sequence are the master’s (B240). No clock reading: the worker keeps its own.
WorkerMessage
WorkerUsage
A worker’s memory by part (decision 463): the agent’s own process, then what it started.
WorkerWarning

Enums§

AttemptDecision
AttemptStatus
CleanupStatus
JournalState
RejectReason
RootKind
StartMethod