Skip to content

docs: ADR 0012 matches db-retry 0.8.1, require db-retry>=0.8.1 - #59

Merged
lesnik512 merged 1 commit into
mainfrom
docs/adr-0012-dead-session
Oct 17, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
docs/adr-0012-dead-session

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Requires db-retry 0.8.1 and brings ADR 0012 in line with it.

db-retry 0.8.1 (modern-python/db-retry#75) rolls back a dead session transaction when Transaction is entered. ADR 0012 said that any query outside the block leaves a dead transaction the retry cannot roll back. That is no longer true for a query after the block: the next attempt enters Transaction first and recovers. A query before the block still runs first on the retried attempt and fails it. So the rule stays, and the ADR now gives the narrower reason.

  • docs/adr/0012-pool-pre-ping-off.md: reworded the rule sentence. The record is 144 words.
  • pyproject.toml, uv.lock: db-retry>=0.8.1, locked at 0.8.1.

just test: 141 passed, 100% coverage, with db-retry 0.8.1 in the container.

@lesnik512
lesnik512 merged commit b4041af into main Oct 17, 2026
4 checks passed
@lesnik512
lesnik512 deleted the docs/adr-0012-dead-session branch October 17, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant