영상생성 10분으로 변경 .

main
hbyang 2026-01-14 10:30:40 +09:00
parent 1351370ce8
commit d94dc76ccf
1 changed files with 3 additions and 3 deletions

View File

@ -304,8 +304,8 @@ export async function uploadImages(
} }
} }
// 영상 생성 완료까지 폴링 (3분 타임아웃, 3초 간격) // 영상 생성 완료까지 폴링 (10분 타임아웃, 3초 간격)
const VIDEO_POLL_TIMEOUT = 3 * 60 * 1000; // 3 const VIDEO_POLL_TIMEOUT = 10 * 60 * 1000; // 10
const VIDEO_POLL_INTERVAL = 3000; // 3초 const VIDEO_POLL_INTERVAL = 3000; // 3초
export async function waitForVideoComplete( export async function waitForVideoComplete(
@ -316,7 +316,7 @@ export async function waitForVideoComplete(
// 재귀적으로 폴링하는 방식으로 변경 (async/await 제대로 동작) // 재귀적으로 폴링하는 방식으로 변경 (async/await 제대로 동작)
const poll = async (): Promise<VideoStatusResponse> => { const poll = async (): Promise<VideoStatusResponse> => {
// 3분 타임아웃 체크 // 10분 타임아웃 체크
if (Date.now() - startTime > VIDEO_POLL_TIMEOUT) { if (Date.now() - startTime > VIDEO_POLL_TIMEOUT) {
throw new Error('TIMEOUT'); throw new Error('TIMEOUT');
} }