Expand description
§Azums Postgres
Production-grade PostgreSQL storage backend implementation for azums.
Structs§
- Attempts
Repo - PostgreSQL repository for durable job-attempt history.
- Ingest
Decisions Repo - PostgreSQL repository for producer admission audit decisions.
- Job
- Primary job entity representing a unit of work stored in a storage backend.
- JobList
Item - Lightweight job summary model returned when listing jobs in Admin UI or APIs.
- Jobs
Repo - Repository providing atomic database operations for job queue management.
- Maintenance
Repo - PostgreSQL repository for archival, history pruning, and table maintenance.
- Memory
Attempt - Attempt history record stored in
MemoryBackend. - Memory
Backend - Thread-safe in-memory implementation of
StorageBackend. - Metrics
Repo - PostgreSQL repository for queue-level operational metrics.
- Mock
Backend - Recording mock storage backend wrapper for assertion-driven integration testing.
- NewJob
- Specification for enqueueing a new job into a storage backend.
- Policies
Repo - PostgreSQL repository for queue execution policies.
- Policy
Decision Row - Durable record explaining a queue-policy decision for one job.
- Policy
Decisions Repo - PostgreSQL repository for durable policy-decision history.
- Postgres
Backend - PostgreSQL implementation of
StorageBackendusing SQLx. - Queue
Policy - PostgreSQL execution limits applied to one queue.
Enums§
- Call
Record - Log record representing a single call executed against a
MockBackend. - JobStatus
- Stored job status values.
Traits§
- Storage
Backend - Async, backend-agnostic storage interface for job queue operations.
Functions§
- make_
pool - Connects to a PostgreSQL database URL and returns a tuned
PgPool. - run_
migrations - Executes all embedded SQL schema migrations on the provided database connection pool.
Type Aliases§
- JobHandler
- Asynchronous job handler closure type alias.
- Queue
Error - Type alias for backward compatibility.