Fix timeout

This commit is contained in:
Colin McDonnell
2025-12-22 12:51:04 -08:00
parent 507efb0c25
commit 7407b6cbc5
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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 {
+4 -4
View File
@@ -36,8 +36,8 @@ export interface WorkflowRunInfo {
export async function fetchWorkflowRunInfo(runId: string): Promise<WorkflowRunInfo> {
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<RepoSettings> {
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);