Expand description
Awa — Postgres-native background job queue for Rust and Python.
This is the facade crate that re-exports the main types from awa-model, awa-macros, and awa-worker for ergonomic usage.
Re-exports§
pub use awa_model as model;pub use awa_worker as worker;
Modules§
Structs§
- Client
- The Awa worker client — manages dispatchers, heartbeat, and maintenance.
- Client
Builder - Builder for the Awa worker client.
- Health
Check - Health check result.
- Insert
Opts - Options for inserting a job.
- Insert
Params - Parameters for bulk insert.
- JobContext
- Context passed to worker handlers during job execution.
- JobRow
- A row from the
awa.jobstable. - Periodic
Job - A periodic job schedule definition.
- Periodic
JobBuilder - Builder for
PeriodicJob. - Queue
Config - Configuration for a single queue.
- Queue
Health - Per-queue health.
- Rate
Limit - Rate limit configuration for a queue.
- Unique
Opts - Uniqueness constraint options.
Enums§
- AwaError
- Build
Error - Errors returned when building a worker client.
- JobError
- Error type for job handlers — any error is retryable unless it’s terminal.
- JobResult
- Result of executing a job handler.
- JobState
- Job states in the lifecycle state machine.
- Queue
Capacity - Capacity information for a queue, mode-dependent.
Traits§
Functions§
- insert
- Insert a job with default options.
- insert_
many - Insert multiple jobs in a single statement.
- insert_
many_ copy - Insert many jobs using COPY for high throughput.
- insert_
many_ copy_ from_ pool - Convenience wrapper that acquires a connection from the pool.
- insert_
with - Insert a job with custom options.
Derive Macros§
- JobArgs
- Derive macro for job argument types.