Increase max attempts for image generation completion
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 20s

This commit is contained in:
Jack Hadrill
2024-12-10 22:01:59 +00:00
parent ab9d66af54
commit 5c29e93549

View File

@@ -78,7 +78,7 @@ export async function execute(
*/ */
async function pollPredictionStatus( async function pollPredictionStatus(
predictionId: string, predictionId: string,
maxAttempts = 5, maxAttempts = 20,
interval = 2000 interval = 2000
): Promise<Prediction> { ): Promise<Prediction> {
for (let attempt = 0; attempt < maxAttempts; attempt++) { for (let attempt = 0; attempt < maxAttempts; attempt++) {