Skip to main content

Crate boson_runtime

Crate boson_runtime 

Source
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

Structs§

Boson
Boson work engine — enqueue, admin reads, and worker orchestration.
BosonBuilder
Builder for Boson.
ManualWorker
Manual single-step worker for tests (no background task).
TaskDefaults
Default retry, rate, priority, and pool settings for a registered task.
TaskDescriptor
Descriptor for a registered task.
TaskRegistry
Registry of tasks discovered via inventory (auto_discover) or register. Prefer BosonBuilder::auto_registry at boot.
WorkerSettings
Resolved worker settings for claim, lease, and telemetry labels.

Functions§

configure
Install the process-wide default Boson instance.
default
Return the configured default Boson instance, if any.
spawn_worker
Spawn background worker loop.

Type Aliases§

InvokeFn
Invokes a registered task with execution context and JSON parameters.