awa 0.3.0-alpha.3

Postgres-native background job queue — transactional enqueue, heartbeat crash recovery, SKIP LOCKED dispatch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! 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-export core model types (includes JobArgs derive macro via awa-model)
pub use awa_model::{
    self as model, admin, insert, insert_many, insert_many_copy, insert_many_copy_from_pool,
    insert_with, migrations, AwaError, CallbackConfig, DefaultAction, InsertOpts, InsertParams,
    JobArgs, JobRow, JobState, ResolveOutcome, UniqueOpts,
};

// Re-export worker runtime
pub use awa_worker::{
    self as worker, context::ProgressState, BuildError, CallbackToken, Client, ClientBuilder,
    HealthCheck, JobContext, JobError, JobResult, PeriodicJob, PeriodicJobBuilder, QueueCapacity,
    QueueConfig, QueueHealth, RateLimit, RetentionPolicy, Worker,
};