Skip to main content

Cancel Batch Job

POST 

/api/v1/beta/batch-processing/:job_id/cancel

Cancel a running batch processing job.

Stops spawning new item processing tasks immediately. Items currently being processed will complete. Essential for cost control if a job was started in error.

Args: job_id: ID of the batch job to cancel payload: Cancellation request with optional reason user: Authenticated user making the request db: Database session

Returns: BatchJobCancelResponse with final job statistics

Raises: HTTPException: If job not found, already completed, or user lacks permissions

Request

Responses

Successful Response