Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ Notable changes between releases. Detailed migration notes for storage transitio

## [Unreleased]

## [0.6.13] — 2026-11-06

Ships everything in 0.6.13-alpha.1, which soaked without regressions, plus the batch-enqueue deadlock fix.

### Added

- **`QueueStorage::rescue_stale_heartbeats_with_dlq`,
`rescue_expired_deadlines_with_dlq` and `rescue_expired_callbacks_with_dlq`**
take a per-queue predicate and dead-letter exhausted attempts in the rescue
transaction. The existing methods keep their behaviour and fail exhausted
attempts into `done_entries`.

### Changed

- **One LISTEN connection per runtime, idle polling backoff and bounded claims.** Queue dispatchers share a listener and a runtime-wide claim semaphore (`ClientBuilder::max_concurrent_claims`). Empty queues back off from `poll_interval` to a 2 s cap when notifications are available; poll-only runtimes retain `poll_interval`. Saturated claim waits observe shutdown, and late-starting tasks receive cancellation. Dispatcher exit and worker drain share the timeout. The idle cap stays internal to preserve `QueueConfig` struct literals.

### Fixed

- **Batch enqueues take their lane locks in one order, so they no longer
Expand All @@ -23,22 +39,6 @@ Notable changes between releases. Detailed migration notes for storage transitio
statement order; see "`deadlock detected` while enqueueing" in the
troubleshooting guide.

## [0.6.13-alpha.1] — 2026-11-05

### Added

- **`QueueStorage::rescue_stale_heartbeats_with_dlq`,
`rescue_expired_deadlines_with_dlq` and `rescue_expired_callbacks_with_dlq`**
take a per-queue predicate and dead-letter exhausted attempts in the rescue
transaction. The existing methods keep their behaviour and fail exhausted
attempts into `done_entries`.

### Changed

- **One LISTEN connection per runtime, idle polling backoff and bounded claims.** Queue dispatchers share a listener and a runtime-wide claim semaphore (`ClientBuilder::max_concurrent_claims`). Empty queues back off from `poll_interval` to a 2 s cap when notifications are available; poll-only runtimes retain `poll_interval`. Saturated claim waits observe shutdown, and late-starting tasks receive cancellation. Dispatcher exit and worker drain share the timeout. The idle cap stays internal to preserve `QueueConfig` struct literals.

### Fixed

- **Scheduled, snoozed and retry-after jobs are no longer held back while
the maintenance leader is overloaded.** The leader backs a maintenance
branch off for a cooldown after its body repeatedly runs longer than its
Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ members = [
exclude = ["awa-python", "spike"]

[workspace.package]
version = "0.6.13-alpha.1"
version = "0.6.13"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Postgres-native background job queue — transactional enqueue, heartbeat crash recovery, SKIP LOCKED dispatch"
Expand All @@ -25,11 +25,11 @@ categories = ["database", "asynchronous", "web-programming"]

[workspace.dependencies]
# Internal crates
awa-model = { path = "awa-model", version = "0.6.13-alpha.1" }
awa-macros = { path = "awa-macros", version = "0.6.13-alpha.1" }
awa-metrics = { path = "awa-metrics", version = "0.6.13-alpha.1" }
awa-worker = { path = "awa-worker", version = "0.6.13-alpha.1" }
awa = { path = "awa", version = "0.6.13-alpha.1" }
awa-model = { path = "awa-model", version = "0.6.13" }
awa-macros = { path = "awa-macros", version = "0.6.13" }
awa-metrics = { path = "awa-metrics", version = "0.6.13" }
awa-worker = { path = "awa-worker", version = "0.6.13" }
awa = { path = "awa", version = "0.6.13" }

# Database
sea-orm = { version = "=2.0.0-rc.38", default-features = false, features = ["sqlx-postgres", "runtime-tokio-rustls", "with-chrono", "with-json"] }
Expand Down
4 changes: 2 additions & 2 deletions awa-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ path = "src/main.rs"
[dependencies]
awa-model.workspace = true
awa-worker.workspace = true
awa-ui = { path = "../awa-ui", version = "0.6.13-alpha.1" }
awa-ui = { path = "../awa-ui", version = "0.6.13" }
axum.workspace = true
sqlx.workspace = true
tokio.workspace = true
Expand All @@ -28,5 +28,5 @@ hex.workspace = true
uuid.workspace = true

[dev-dependencies]
awa-testing = { path = "../awa-testing", version = "0.6.13-alpha.1" }
awa-testing = { path = "../awa-testing", version = "0.6.13" }
assert_cmd = "2"
2 changes: 1 addition & 1 deletion awa-cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "awa-cli"
version = "0.6.13-alpha.1"
version = "0.6.13"
description = "CLI for the Awa Postgres-native job queue (migrations, admin, serve)"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
10 changes: 5 additions & 5 deletions awa-python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions awa-python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "awa-python"
version = "0.6.13-alpha.1"
version = "0.6.13"
edition = "2021"

[lib]
Expand All @@ -12,8 +12,8 @@ default = ["cel"]
cel = ["awa-model/cel"]

[dependencies]
awa-model = { path = "../awa-model", version = "0.6.13-alpha.1" }
awa-worker = { path = "../awa-worker", version = "0.6.13-alpha.1", features = ["__python-bridge"] }
awa-model = { path = "../awa-model", version = "0.6.13" }
awa-worker = { path = "../awa-worker", version = "0.6.13", features = ["__python-bridge"] }
pyo3 = { version = "0.29", features = ["macros", "abi3-py310", "chrono"] }
pyo3-async-runtimes = { version = "0.29", features = ["tokio-runtime"] }
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "chrono", "json"] }
Expand Down
4 changes: 2 additions & 2 deletions awa-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "maturin"
[project]
name = "awa-pg"
requires-python = ">=3.10"
version = "0.6.13-alpha.1"
version = "0.6.13"
description = "Postgres-native background job queue — Python SDK with async/sync workers, transactional enqueue, and progress tracking. Install awa-pg[ui] to add the bundled web dashboard."
readme = "README.md"
license = {text = "MIT OR Apache-2.0"}
Expand All @@ -32,7 +32,7 @@ classifiers = [
#
# Kept opt-in so the default `awa-pg` install stays small — workers and
# producers don't need the ~10 MB UI bundle.
ui = ["awa-cli==0.6.13-alpha.1"]
ui = ["awa-cli==0.6.13"]

[project.urls]
Homepage = "https://github.com/hardbyte/awa"
Expand Down
4 changes: 2 additions & 2 deletions awa-python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion awa-seaorm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ serde_json.workspace = true
sqlx.workspace = true

[dev-dependencies]
awa-testing = { path = "../awa-testing", version = "0.6.13-alpha.1" }
awa-testing = { path = "../awa-testing", version = "0.6.13" }
serde = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
2 changes: 1 addition & 1 deletion awa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ awa-macros.workspace = true
awa-worker.workspace = true

[dev-dependencies]
awa-testing = { path = "../awa-testing", version = "0.6.13-alpha.1" }
awa-testing = { path = "../awa-testing", version = "0.6.13" }
sqlx.workspace = true
serde.workspace = true
serde_json.workspace = true
Expand Down
Loading