From 7407b6cbc5b2c19791fdff306da0e6b3f079edfb Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Mon, 22 Dec 2025 12:51:04 -0800 Subject: [PATCH] Fix timeout --- entry | 4 ++-- utils/api.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/entry b/entry index aa13a42..cc60738 100755 --- a/entry +++ b/entry @@ -98155,7 +98155,7 @@ var DEFAULT_REPO_SETTINGS = { }; async function fetchWorkflowRunInfo(runId) { const apiUrl = process.env.API_URL || "https://pullfrog.com"; - const timeoutMs = 5e3; + const timeoutMs = 3e4; const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), timeoutMs); try { @@ -98186,7 +98186,7 @@ async function fetchRepoSettings({ } async function getRepoSettings(token, repoContext) { const apiUrl = process.env.API_URL || "https://pullfrog.com"; - const timeoutMs = 5e3; + const timeoutMs = 3e4; const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), timeoutMs); try { diff --git a/utils/api.ts b/utils/api.ts index c0ab051..4d31e44 100644 --- a/utils/api.ts +++ b/utils/api.ts @@ -36,8 +36,8 @@ export interface WorkflowRunInfo { export async function fetchWorkflowRunInfo(runId: string): Promise { const apiUrl = process.env.API_URL || "https://pullfrog.com"; - // add timeout to prevent hanging (5 seconds) - const timeoutMs = 5000; + // add timeout to prevent hanging (30 seconds) + const timeoutMs = 30000; const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), timeoutMs); @@ -90,8 +90,8 @@ export async function getRepoSettings( ): Promise { const apiUrl = process.env.API_URL || "https://pullfrog.com"; - // Add timeout to prevent hanging (5 seconds) - const timeoutMs = 5000; + // Add timeout to prevent hanging (30 seconds) + const timeoutMs = 30000; const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), timeoutMs);