Skip to content

Release 0.6.0: add Executor.track()#2

Merged
krokicki merged 3 commits into
mainfrom
release-0.6.0
May 8, 2026
Merged

Release 0.6.0: add Executor.track()#2
krokicki merged 3 commits into
mainfrom
release-0.6.0

Conversation

@krokicki
Copy link
Copy Markdown
Member

@krokicki krokicki commented May 8, 2026

Summary

  • Adds public Executor.track(job_id, status=...) method, symmetric with remove_job. Lets callers seed the executor from a persistent store (e.g. a database) so subsequent poll() / cancel() calls can act on jobs submitted by a previous process — without reaching into the private _jobs dict.
  • Bumps version to 0.6.0.

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 main back in sync.

Test plan

  • pixi run test — 156 passed
  • New TestTrack class covers default status, explicit status, replacement of an existing record, and remove_job round-trip

🤖 Generated with Claude Code

krokicki and others added 3 commits May 8, 2026 19:08
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>
@krokicki krokicki merged commit 88c0ac3 into main May 8, 2026
1 check passed
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