Skip to content

Add pipeline job cancel endpoints - #770

Merged
MrCreosote merged 1 commit into
mainfrom
dev-service
Sep 28, 2026
Merged

MrCreosote merged 1 commit into
mainfrom
dev-service

Conversation

@MrCreosote

Copy link
Copy Markdown
Member

Add PUT /pipelines/jobs/{job_id}/cancel and PUT
/admin/pipelines/jobs/{job_id}/cancel, mirroring the existing standard job cancel routes and reusing the shared job+flow fetch helpers. Regular cancel is listed before runner_status; admin cancel is listed after runner_status, matching the existing route ordering conventions for standard jobs.

Update NERSCJAWSRunner.cancel_job/_cancel_job to accept pipeline jobs, since all pipeline jobs run exclusively through this flow: refresh from the correct collection and thread the pipeline flag through to job state updates.

Add PUT /pipelines/jobs/{job_id}/cancel and PUT
/admin/pipelines/jobs/{job_id}/cancel, mirroring the existing standard
job cancel routes and reusing the shared job+flow fetch helpers.
Regular cancel is listed before runner_status; admin cancel is listed
after runner_status, matching the existing route ordering conventions
for standard jobs.

Update NERSCJAWSRunner.cancel_job/_cancel_job to accept pipeline jobs,
since all pipeline jobs run exclusively through this flow: refresh
from the correct collection and thread the pipeline flag through to
job state updates.
@codecov

codecov Bot commented Sep 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 46.15385% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.32%. Comparing base (f3f730c) to head (d55a261).
⚠️ Report is 28 commits behind head on main.

Files with missing lines Patch % Lines
cdmtaskservice/pipelines/routes.py 50.00% 4 Missing ⚠️
cdmtaskservice/jobflows/nersc_jaws.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #770      +/-   ##
==========================================
- Coverage   65.34%   65.32%   -0.02%     
==========================================
  Files          76       76              
  Lines        7739     7747       +8     
==========================================
+ Hits         5057     5061       +4     
- Misses       2682     2686       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MrCreosote
MrCreosote merged commit 0888304 into main Sep 28, 2026
3 of 5 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.

1 participant