Skip to main content

Smart Batch 일시 중지

완료된 행에 이미 기록된 결과를 잃지 않고 활성 SmartBatch(및 연결된 모든 FeatureRunner 실행)를 일시 중지합니다. 배치를 재개할 때까지 워커는 남은 행을 가져오지 않습니다.

큐 및 브라우저 배치는 "processing" 또는 "pending" 상태여야 합니다(그렇지 않으면 400 batch_not_pausable). FeatureRunner 실행이 뒷받침되는 배치는 해당 실행이 "queued" 또는 "processing" 상태여야 합니다(그렇지 않으면 400 run_not_pausable). 일시 중지해도 크레딧이 소비되지 않습니다.

엔드포인트​

POST https://api.verifik.co/v2/smart-batches/{id}/pause

클라이언트별 Authorization: Bearer <VERIFIK_JWT>를 사용하여 Smart-Agent 프록시(https://ai.verifik.co/v2/smart-batches/{id}/pause)를 통해서도 호출할 수 있습니다. 공유 x402 실행은 403 Forbidden으로 차단됩니다.

헤더​

이름값설명
Content-Typeapplication/json요청 페이로드 형식.
AuthorizationBearer <VERIFIK_JWT>클라이언트 범위 JWT (authUser.clientId).

매개변수​

이름타입필수설명
idstring예일시 중지할 SmartBatch ObjectId.

요청​

import axios from "axios";

const run = async () => {
const batchId = "6801a2b3c4d5e6f7a8b9c0d3";

const { data } = await axios.post(
`https://api.verifik.co/v2/smart-batches/${batchId}/pause`,
{},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(data);
};

run();

응답​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": "6801a2b3c4d5e6f7a8b9c0d4",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Onboarding — November",
"status": "paused",
"executor": "queue",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0.4,
"rows": [],
"totalRows": 25,
"completedRows": 10,
"failedRows": 0,
"partialRows": 0,
"startedAt": "2026-11-24T20:10:00.000Z",
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:14:00.000Z"
}
}

참고​

  • 배치를 프로그래밍 방식으로 일시 중지하려면 "paused"를 허용하지 않는 PUT /v2/smart-batches/{id} 대신 항상 이 엔드포인트를 사용하세요.
  • FeatureRunner 기반 배치는 실행 상태가 "queued" 또는 "processing"이 아닌 경우 run_not_pausable과 함께 400 BadRequest를 반환합니다.
  • 나중에 Smart Batch 재개를 사용하여 실행을 계속하거나, Smart Batch 취소로 영구 종료할 수 있습니다.

관련​