Skip to main content

Crate nidus_jobs

Crate nidus_jobs 

Source
Expand description

Background job abstractions.

These primitives are intentionally local and in-memory. JobQueue and AsyncJobQueue run jobs stored in the current process; they do not persist, schedule, retry, distribute, or reserve jobs across workers.

Structs§

AsyncJobQueue
In-memory asynchronous job queue.
DurableJobRecord
Persisted durable job data returned by a store.
DurableJobRegistry
Immutable handler registry shared by workers.
DurableJobWorker
Bounded, multi-worker-safe durable job executor.
JobError
Error emitted by a background job.
JobExecutionContext
Context supplied to a durable job handler.
JobExecutionError
Safe handler failure used to choose retry or dead-letter behavior.
JobFailure
Failed job details from a queue run.
JobObserverChannel
Observer implementation that sends observed job events to a channel.
JobQueue
In-memory job queue.
JobReport
Report from a queue run.
JobRetryPolicy
Exponential full-jitter retry policy.
LeaseRequest
Parameters for an atomic lease operation.
NewJob
A validated job ready to enqueue.
ObservedJobContext
Context carried through observed job execution.
ObservedJobRunner
Runner that observes synchronous and asynchronous jobs without owning a queue.
StoreStats
Aggregate durable store counts.
WorkerConfig
Bounded worker configuration.
WorkerReport
Aggregate results from a worker run.

Enums§

DurableJobError
Error returned by durable job infrastructure.
EnqueueResult
Result of an idempotent enqueue operation.
JobDisposition
Store action after an unsuccessful execution.
JobResultStatus
Completion status for an observed job run.
JobStatus
Persisted durable job state.
ObservedJobEvent
Structured event emitted by a channel-backed job observer.

Traits§

AsyncJob
Asynchronous job abstraction for Tokio-backed background work.
DurableJobHandler
Named durable job handler.
DurableJobStore
Persistence contract for at-least-once durable jobs.
Job
Synchronous job abstraction for lightweight background work.
JobObserver
Observer hook for job execution.

Functions§

job_observer_channel
Creates a channel-backed job observer and its receiver.

Type Aliases§

DurableResult
Result type used by durable job stores and workers.
Result
Result type for background job execution.