//! Background workers that drive the runtime.
//!
//! - `dispatcher::DispatchWorker`: pulls Queued jobs and runs handlers.
//! - `orphan::OrphanWorker`: re-finalises Running jobs that exceeded their timeout.
//! - `cancel_sweep::CancelSweep`: invokes `handler.cancel` for `cancel_run`-marked rows.
use Duration;
/// Tick interval / one-shot policy for a [`BackgroundWorker`].
/// Common shape for the dispatcher / orphan / cancel-sweep tasks. They are not
/// strictly required to share a trait — the runtime spawns each one explicitly —
/// but giving them a uniform `tick` makes testing easier.
// currently spawned ad-hoc; trait is reserved for testability.