Skip to content

refactor(job): remove cancel_job API#67

Merged
HonestMajority merged 1 commit intomainfrom
task/remove-cancel-job-api-019d19bd
Mar 23, 2026
Merged

refactor(job): remove cancel_job API#67
HonestMajority merged 1 commit intomainfrom
task/remove-cancel-job-api-019d19bd

Conversation

@bodymindarts
Copy link
Copy Markdown
Member

Summary

  • Remove cancel_job() public method from Jobs service and unused AtomicOperation import
  • Remove Cancelled event variant from JobEvent enum and related cancel() / cancelled() methods from the entity
  • Remove CannotCancelJob error variant from JobError
  • Remove three cancel-related integration tests (test_cancel_pending_job, test_cancel_running_job_fails, test_cancel_already_completed_job_is_idempotent)

Consumers handle cancellation at their own layer, so the crate-level API is no longer needed.

Test plan

  • nix flake check passes (fmt, clippy, deny, audit)
  • CI integration tests pass

🤖 Generated with Claude Code

Consumers handle cancellation at their own layer, so the crate-level
cancel_job method, Cancelled event variant, CannotCancelJob error, and
related tests are no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bodymindarts bodymindarts force-pushed the task/remove-cancel-job-api-019d19bd branch from 2b45f38 to 93540fc Compare March 23, 2026 08:23
@HonestMajority HonestMajority merged commit 0fdaef8 into main Mar 23, 2026
4 checks 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.

2 participants