Release 0.6.0: add Executor.track()#2
Merged
Merged
Conversation
Lets callers register a job ID without re-submitting it, so a process that loads jobs from a database can poll() and cancel() them. Avoids the need to reach into Executor._jobs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.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.
Summary
Executor.track(job_id, status=...)method, symmetric withremove_job. Lets callers seed the executor from a persistent store (e.g. a database) so subsequentpoll()/cancel()calls can act on jobs submitted by a previous process — without reaching into the private_jobsdict.The 0.6.0 wheel + sdist have already been uploaded to PyPI (https://pypi.org/project/py-cluster-api/0.6.0/). This PR brings
mainback in sync.Test plan
pixi run test— 156 passedTestTrackclass covers default status, explicit status, replacement of an existing record, andremove_jobround-trip🤖 Generated with Claude Code