Expand description
Common code used for communicating between the job manager and worker tasks.
Modules§
- stats
- Worker statistics collection
Structs§
- Subtask
Id - The ID for a subtask, which uniquely identifies it within a [Job].
- Worker
Error - A serializable error returned from a worker
- Worker
Input - The input payload that a worker will read when starting
- Worker
Input Payload - The input payload that a worker will read when starting
- Worker
Output - The output payload that the worker writes when a task finishes.
Enums§
- Worker
Result - The result of a worker task
- Wrapper
Error - An error that the worker wrapper framework may encounter
Functions§
- get_
trace_ context - Encode the current trace context so that it can be passed across process lines.
- propagate_
tracing_ context - If tracing is enabled, propagate the trace context from the spawner into the current span.
- run_
worker - Run the worker and return its output, ready for writing back to the output payload location.
Usually you will want to call the equivalent
run_workerfunction in the platform-specific module instead. - trace_
result - Trace the result of an operation.