Fix timeout
This commit is contained in:
@@ -98155,7 +98155,7 @@ var DEFAULT_REPO_SETTINGS = {
|
|||||||
};
|
};
|
||||||
async function fetchWorkflowRunInfo(runId) {
|
async function fetchWorkflowRunInfo(runId) {
|
||||||
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
||||||
const timeoutMs = 5e3;
|
const timeoutMs = 3e4;
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
||||||
try {
|
try {
|
||||||
@@ -98186,7 +98186,7 @@ async function fetchRepoSettings({
|
|||||||
}
|
}
|
||||||
async function getRepoSettings(token, repoContext) {
|
async function getRepoSettings(token, repoContext) {
|
||||||
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
||||||
const timeoutMs = 5e3;
|
const timeoutMs = 3e4;
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
||||||
try {
|
try {
|
||||||
|
|||||||
+4
-4
@@ -36,8 +36,8 @@ export interface WorkflowRunInfo {
|
|||||||
export async function fetchWorkflowRunInfo(runId: string): Promise<WorkflowRunInfo> {
|
export async function fetchWorkflowRunInfo(runId: string): Promise<WorkflowRunInfo> {
|
||||||
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
||||||
|
|
||||||
// add timeout to prevent hanging (5 seconds)
|
// add timeout to prevent hanging (30 seconds)
|
||||||
const timeoutMs = 5000;
|
const timeoutMs = 30000;
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
||||||
|
|
||||||
@@ -90,8 +90,8 @@ export async function getRepoSettings(
|
|||||||
): Promise<RepoSettings> {
|
): Promise<RepoSettings> {
|
||||||
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
const apiUrl = process.env.API_URL || "https://pullfrog.com";
|
||||||
|
|
||||||
// Add timeout to prevent hanging (5 seconds)
|
// Add timeout to prevent hanging (30 seconds)
|
||||||
const timeoutMs = 5000;
|
const timeoutMs = 30000;
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user