Skip to content

Use UNLINK in cancel_all, document leased-timer semantics, plumb client through claim#13

Merged
lesnik512 merged 1 commit intomainfrom
o4-s1-s2-b6-polish
May 3, 2026
Merged

Use UNLINK in cancel_all, document leased-timer semantics, plumb client through claim#13
lesnik512 merged 1 commit intomainfrom
o4-s1-s2-b6-polish

Conversation

@lesnik512
Copy link
Copy Markdown
Member

  • O4: cancel_all now uses UNLINK instead of DEL so freeing large topic keys runs in Redis's background thread (Redis 4.0+).
  • S1: get_pending_timers docstring spells out that leased (in-flight) timers appear in the default call but are excluded once before is set to "now".
  • S2: cancel_all docstring notes that handlers already executing for a leased timer continue to run to completion; their final commit is a no-op because the keys are gone.
  • B6: _claim_and_consume now receives client via tg.start_soon instead of resolving self._client, so the whole subscriber poll-and-claim path uses one consistent client reference.

…nt through claim

- O4: cancel_all now uses UNLINK instead of DEL so freeing large topic
  keys runs in Redis's background thread (Redis 4.0+).
- S1: get_pending_timers docstring spells out that leased (in-flight)
  timers appear in the default call but are excluded once before is
  set to "now".
- S2: cancel_all docstring notes that handlers already executing for a
  leased timer continue to run to completion; their final commit is a
  no-op because the keys are gone.
- B6: _claim_and_consume now receives client via tg.start_soon instead
  of resolving self._client, so the whole subscriber poll-and-claim
  path uses one consistent client reference.
@lesnik512 lesnik512 self-assigned this May 3, 2026
@lesnik512 lesnik512 merged commit e6c6c87 into main May 3, 2026
2 checks passed
@lesnik512 lesnik512 deleted the o4-s1-s2-b6-polish branch May 3, 2026 20:04
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