Expand description
Shared types, QueueBackend trait, router, and identity hooks.
Task authors usually start with boson. This crate holds
shared DTOs, the QueueBackend trait, and identity types used by runtime and backend adapters.
§Entry points
Job,Run,TaskConfig,ExecutionContext— portable data and handler contextQueueBackend— persistence trait for jobs, runs, config, leases (Developing the backend)QueueRouter— register named backends at host boot (see Getting started onboson)
Hosts inject a QueueBackend implementation at build time; this crate has no I/O.
Re-exports§
pub use backend::default_backend_from_global;pub use backend::JobEnqueueDisposition;pub use backend::QueueBackend;pub use error::BosonError;pub use error::IdentityError;pub use error::Result;pub use identity::ExecutionContext;pub use identity::ExecutionContextFactory;pub use identity::JsonExecutionContextFactory;pub use models::IdempotencyMode;pub use models::Job;pub use models::JobStatus;pub use models::RateLimitPolicy;pub use models::RetryPolicy;pub use models::Run;pub use models::RunStatus;pub use models::TaskConfig;pub use models::TaskRunStats;pub use router::QueueRouter;