Conversation
Contributor
✅ Eval
lc statusConfusion & pain points (Claude analysis)Confusion & pain points
Full trace: |
Member
Author
Code review: bugs, overengineering and reuseAutomated review of The most serious issue is in the lease: a single failed scheduler call ends it, so one hiccup can abort a whole run. Bugs come first, most severe first, then the design issues. Bugs
Overengineering and reuse
🤖 Generated with Claude Code |
Signed-off-by: Francois Lanusse <fr.eiffel@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dask may rerun a task after losing its worker or its completed result, even with
retries=0. For recipes that write project files, that can repeat side effects while the original command is still running.This PR adds one atomic claim in the existing Dask scheduler before each recipe or probe executes. A second attempt is refused. Missing invocation state, an unavailable scheduler, or a disconnected driver also refuses new execution. Claims are scoped to one invocation and removed on exit; later invocations prune abandoned records.
The implementation is a 91-line module and small integrations in
runandmaterialize. There are no leases, heartbeats, completion receipts, process supervisors, sandbox changes, or automatic restoration after interruption. It does not stop an already running command or prevent independent invocations from writing the same project. Existing interruption behavior retains unreported partial outputs for inspection.CPU, memory, and GPU resource management remains in the separate stacked PR #230.
Validation: all 892 tests pass locally, plus Ruff, strict mypy, and a strict documentation build. Tests exercise real Dask worker loss during and after execution, task forgetting and resubmission, missing scheduler state, lost claim replies, and ordinary task failure. No new Slurm job was submitted. All automated GitHub checks pass at
0eb27e9: Linux/Python 3.11–3.13, macOS/Python 3.13, lint, agent evaluation, automated review, and sign-off validation. The external DCO gate awaits PR approval.