Expand description
Worker runtime, builder, and enqueue orchestration.
Wire the worker process here: inject a QueueBackend, identity
factory, and optional telemetry. BosonBuilder::build enqueues and starts a background
loop that claims and runs jobs; use ManualWorker for step-driven tests.
§Entry points
Boson::builder— injectQueueBackend,ExecutionContextFactory,OpsLogBosonBuilder::build— spawn background worker loop (default)BosonBuilder::build_manual/ManualWorker— drive job execution step-by-stepBoson::enqueue— enqueue work for background executionconfigure/default— process-wide default for macrosend_with(once at boot)
Structs§
- Boson
- Boson work engine — enqueue, admin reads, and worker orchestration.
- Boson
Builder - Builder for
Boson. - Manual
Worker - Manual single-step worker for tests (no background task).
- Task
Defaults - Default retry, rate, priority, and pool settings for a registered task.
- Task
Descriptor - Descriptor for a registered task.
- Task
Registry - Registry of tasks discovered via inventory (
auto_discover) orregister. PreferBosonBuilder::auto_registryat boot. - Worker
Settings - Resolved worker settings for claim, lease, and telemetry labels.
Functions§
- configure
- Install the process-wide default
Bosoninstance. - default
- Return the configured default
Bosoninstance, if any. - spawn_
worker - Spawn background worker loop.
Type Aliases§
- Invoke
Fn - Invokes a registered task with execution context and JSON parameters.