Repository navigation
Quiet superseded Perpetual runs, fix docket-rs's TLS backend and partial batches, and bump docket-rs to 0.3.0 - #564
Conversation
…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
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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 |
There was a problem hiding this comment.
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 👍 / 👎.
A release review of the changes since python/v0.26.2 and rust/v0.2.0
found these problems.
published
completedon the key, soget_result()returnedNonebefore the replacement ran. At 0.26.2 it raised
ExecutionCancelled.Both languages now end a superseded Perpetual run without a state
event, as Clear in batches, keep 0.26.2's reschedules, and fix docket-rs review findings #562 did for Retry. This also covers a Perpetual reschedule
that a replace superseded, which published the same way at 0.26.2.
tlsfeature (Fix docket-rs's rediss:// connections, and put TLS behind a default feature #552) turned on rustls'sringbackend. In an application that already has rustls's default
aws-lc-rs, rustls then has two backends, and every rustls config inthe process panics, the application's own included, even with no
rediss://URL.tlsnow brings no backend, and the newtls-ringfeature adds
ringfor an application with none. There is notls-aws-lc-rsfeature:--all-featureswould then turn on both.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. Afailure on the first chunk still returns the error, as in 0.2.0.
Admission::admit(Fail a docket-rs task whose admission check can't run, as pydocket does #547) andadd_many/replace_many(Chunk docket-rs batches, accept keyless replaces, and run a task under other names #550) changed incompatibly since 0.2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y2QtufEUxxm9XgTqCWySHG