Skip to content

fix(state): let the backend decide whether MessageState needs a state… - #409

Merged
mducros-wm merged 1 commit into
masterfrom
fix/state-backend-owns-ttl-gate
Sep 4, 2026
Merged

mducros-wm merged 1 commit into
masterfrom
fix/state-backend-owns-ttl-gate

Conversation

@mducros-wm

@mducros-wm mducros-wm commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

PostgresBackend's retention is the pgmq archive's, so it ignores the ttl. Gating the middleware on that ttl forced its users to pass a value meaning nothing to record any state at all. StateBackend.requires_ttl carries the decision instead: true for the redis and stub backends, false for PostgresBackend.

…_ttl

PostgresBackend's retention is the pgmq archive's, so it ignores the ttl. Gating the
middleware on that ttl forced its users to pass a value meaning nothing to record any
state at all. StateBackend.requires_ttl carries the decision instead: true for the redis
and stub backends, false for PostgresBackend.
@mducros-wm
mducros-wm merged commit 2b7df7d into master Sep 4, 2026
10 checks passed
@mducros-wm
mducros-wm deleted the fix/state-backend-owns-ttl-gate branch September 4, 2026 09:14
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.

2 participants