Bucket Batches
Cancel Batch
Changed onCancel a submitted/processing batch: cancels Ray job via engine and marks task/batch as CANCELLED.
post/v1/buckets/{bucket_identifier}/batches/{batch_id}/cancel
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/buckets/{bucket_identifier}/batches/{batch_id}/cancel
- Auth: HTTP bearer and API key in header X-Namespace
Path parameters
bucket_identifierstring required
The unique identifier of the bucket.
batch_idstring required
The unique identifier of the batch.
Query parameters
reasonstring nullable
Optional human reason for the cancel, recorded on the batch record for audit.
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"
}Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- warning
added the new
api_manifest_applyenum value to theresponse property for the response status
- warning