Crate smelter_worker
source ·Expand description
Common code used for communicating between the job manager and worker tasks.
Modules§
- Worker statistics collection
Structs§
- The ID for a subtask, which uniquely identifies it within a [Job].
- A serializable error returned from a worker
- The input payload that a worker will read when starting
- The input payload that a worker will read when starting
- The output payload that the worker writes when a task finishes.
Enums§
- The result of a worker task
- An error that the worker wrapper framework may encounter
Functions§
- Encode the current trace context so that it can be passed across process lines.
- If tracing is enabled, propagate the trace context from the spawner into the current span.
- 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_worker
function in the platform-specific module instead. - Trace the result of an operation.