Skip to content

Quiet superseded Perpetual runs, fix docket-rs's TLS backend and partial batches, and bump docket-rs to 0.3.0 - #564

Merged
chrisguidry merged 1 commit into
mainfrom
release-review-fixes
Oct 9, 2026
Merged

chrisguidry merged 1 commit into
mainfrom
release-review-fixes

Conversation

@chrisguidry

Copy link
Copy Markdown
Owner

A release review of the changes since python/v0.26.2 and rust/v0.2.0
found these problems.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y2QtufEUxxm9XgTqCWySHG

…ial batches, and bump docket-rs to 0.3.0

A release review of the changes since python/v0.26.2 and rust/v0.2.0
found these problems.

- A Perpetual that stops itself after a replace of its own key (#554)
published `completed` on the key, so `get_result()` returned `None`
before the replacement ran. At 0.26.2 it raised `ExecutionCancelled`.
Both languages now end a superseded Perpetual run without a state
event, as #562 did for Retry. This also covers a Perpetual reschedule
that a replace superseded, which published the same way at 0.26.2.
- docket-rs's default `tls` feature (#552) turned on rustls's `ring`
backend. In an application that already has rustls's default
`aws-lc-rs`, rustls then has two backends, and every rustls config in
the process panics, the application's own included, even with no
`rediss://` URL. `tls` now brings no backend, and the new `tls-ring`
feature adds `ring` for an application with none. There is no
`tls-aws-lc-rs` feature: `--all-features` would then turn on both.
- A docket-rs batch that failed after its first chunk (#550) returned
only the error, so the caller lost the dispositions of the tasks
already in Redis. The batch now returns every execution, with the
failed chunk and those after it marked `Disposition::Failed`. A
failure on the first chunk still returns the error, as in 0.2.0.
- docket-rs goes to 0.3.0, because `Admission::admit` (#547) and
`add_many`/`replace_many` (#550) changed incompatibly since 0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y2QtufEUxxm9XgTqCWySHG
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T14:49:11.423481Z 6c9e938 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 docket | 🛠️ Build #35043015 | 📁 Comparing 6c9e938 against latest (8a2bb58)

  🔍 Preview build  

1 file changed
± api-reference/index.html

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6c9e938139

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# and let the worker safety net overwrite the committed terminal
# state with FAILED/None.
self._acked = True
self._ended = True

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Do not mark refused terminal writes as ended

When _terminal raises because Redis refused the write before committing it (for example, NOREPLICAS or READONLY), _ended remains true. _execute catches that exception, but the new guard in worker.py then skips the fallback mark_as_failed, while _acked suppresses the outer safety net; consequently the Redis error is swallowed and the unacknowledged task remains pending until redelivery, potentially executing user code twice instead of triggering the worker's reconnect path. Reserve _ended for a terminal write that actually completed or for the explicit superseded-handler path.

Useful? React with 👍 / 👎.

@chrisguidry
chrisguidry merged commit dd10a12 into main Oct 9, 2026
55 checks passed
@chrisguidry
chrisguidry deleted the release-review-fixes branch October 9, 2026 15:08
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