Expand description
Background job queue with priority scheduling, retries, and dead-letter support.
Jobs are enqueued with a name, JSON payload, priority, and retry policy.
Workers pull from the queue and invoke registered handlers. Failed jobs are
retried with exponential back-off until max_retries is exhausted, at which
point they move to the dead-letter queue for manual inspection.
Structs§
- Job
- A job in the queue.
- JobQueue
- The job queue engine.
- Queue
Stats - Worker
- A worker that continuously processes jobs from the queue.
- Worker
Handle - Handle returned by
Worker::start()to stop the background thread.
Enums§
Type Aliases§
- JobHandler
- A handler function for a named job type.