fix(python): bump lease_rotate_interval_ms default 50 -> 250 to match Rust/docs#322
Merged
hardbyte merged 1 commit intoJun 5, 2026
Conversation
Copilot created this pull request from a session on behalf of
hardbyte
June 5, 2026 22:52
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Python client still defaulted
queue_storage_lease_rotate_interval_msto50, while the Rust default and docs moved to250msin #169 (and carried through #321). This drift meant Python users got a different lease-rotation cadence than the documented/Rust default unless they passed the argument explicitly.This brings the Python bindings in line:
awa-python/src/client.rs— pyo3startsignature default50→250awa-python/python/awa/client.py—AsyncClientkeyword default50→250awa-python/python/awa/_awa.pyi— type stub default50→250Context
Ideally this would land on the open PR #321, but that PR's branch (
issue-295-v06-sequence-cursors) isn't writable from this environment, so it's surfaced here as a standalone follow-up. It is a one-commit change stacked on top of #321's head.Validation
250and no50mslease-rotate default remains.awa-worker/src/client.rsandawa-worker/src/maintenance.rs(250ms / Validate MVCC / dead-tuple behaviour under sustained load #169).