Skip to main content

실패한 Smart Batch 행 재시도

이미 완료된 행에 영향을 주지 않고 SmartBatch에서 "failed" 또는 "partial" 상태인 행을 다시 큐에 넣습니다. 특정 행의 하위 집합만 재시도하려면 선택적으로 rowIndexes를 전달하고, 배치 내 모든 "failed" 및 "partial" 행을 재시도하려면 rowIndexes를 생략하세요.

배치가 현재 "processing" 상태이면 요청이 409 Conflict (batch_is_processing)로 실패합니다. retried: 0이 반환되면 일치하는 실패 또는 부분 완료 행이 없음을 나타냅니다.

엔드포인트​

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

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

헤더​

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

매개변수​

이름타입필수설명
idstring예SmartBatch ObjectId.

본문​

이름타입필수설명
rowIndexesinteger[]아니요재시도할 0 기반의 특정 행 인덱스(>= 0, 최대 10000개 항목). 모든 "failed" 및 "partial" 행을 재시도하려면 생략하세요.

알 수 없는 본문 키는 Joi 검증에 의해 409 MissingParameter로 거부됩니다.

요청​

import axios from "axios";

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

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

console.log(data);
};

run();

응답​

{
"data": {
"batch": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": "6801a2b3c4d5e6f7a8b9c0d4",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Onboarding — November",
"status": "processing",
"executor": "featureRunner",
"source": "smart_batch",
"headlessRun": true,
"creditsSpent": 0.4,
"totalRows": 10,
"completedRows": 8,
"failedRows": 0,
"partialRows": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:20:00.000Z"
},
"retried": 2
}
}

참고​

  • 모든 "failed" 및 "partial" 행을 한 번에 재시도하려면 {}를 보내거나 rowIndexes를 생략하세요.
  • rowIndexes가 제공된 경우 해당 인덱스가 포함되어 있더라도 "completed" 또는 "pending" 상태의 행은 무시됩니다.
  • 다른 단계의 결과를 유지하면서 단일 행의 특정 단계 시퀀스만 다시 실행하려면 Smart Batch 행 단계 재시도를 사용하세요.

관련​