MOHAN 08f21d9bc9 Add job cancellation — backend pipeline + cancel API route
pipelineJobs.js:
- cancelJob(jobId): marks job as cancelled=true, status=cancelling
- isJobCancelled(jobId): checked by the pipeline between stages

runSourcePipeline.js:
- PipelineCancelledError class
- checkCancelled() called before each of the 6 pipeline stages
- Accepts options.isCancelled() callback from the job runner

runKytPipelineJob.js:
- Passes isCancelled: () => isJobCancelled(job.id) into pipeline
- Catches PipelineCancelledError separately, sets status=cancelled

routes/pipeline.js:
- POST /pipeline/cancel/:jobId — marks job for cancellation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 16:57:35 +05:30
2026-05-14 23:57:27 +05:30
2026-04-13 17:31:26 +05:30
2026-04-13 17:31:26 +05:30
2026-04-13 17:31:26 +05:30
2026-04-13 17:31:26 +05:30
Description
No description provided
220 KiB
Languages
JavaScript 100%