OpenAPI 3.1.02026-08-205711,1272.8 MB
c768d4d28e4c
Batches
Cancel Batch
Cancel a submitted/processing batch by ID without requiring the bucket_id. Cancels all associated Ray and Celery jobs, releases queue slots, and marks the batch as CANCELLED.
post/v1/batches/{batch_id}/cancel
Path parameters
batch_idstring required
The unique identifier of the batch.
The unique identifier of the batch.
Query parameters
reasonstring nullable
Optional human reason for the cancel, recorded on the batch record for audit (BACKE-2732).
Optional human reason for the cancel, recorded on the batch record for audit (BACKE-2732).
Response
Successful Response
Example response
{
"additional_data": {
"batch_id": "btch_xyz789",
"bucket_id": "bkt_products",
"collection_ids": [
"col_tier0",
"col_tier1",
"col_tier2"
],
"current_tier": 1,
"job_id": "ray_job_123",
"namespace_id": "ns_abc123",
"object_count": 10000,
"sample_object_ids": [
"obj_001",
"obj_002",
"obj_003",
"obj_004",
"obj_005"
],
"total_tiers": 3
},
"description": "Multi-tier batch processing task in progress (tier 1 of 3) with 10k objects",
"inputs": [
"batch_xyz789"
],
"status": "IN_PROGRESS",
"task_id": "2d322a05-3178-4eca-aac6-b82b0a0313aa",
"task_type": "api_buckets_batches_process"
}