Skip to content

Commit 91c6a6b

Browse files
committed
feat(timeout): added a timeout of 3 minutes for the github check, and increased retries to 10 with 10 second delays between the retries
1 parent 618ddf7 commit 91c6a6b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,11 @@ ${outstandingTasks.optionalTasks.map(task => `| ${task.task} | ${task.status} |`
176176
text: tasksTable
177177
},
178178
request: {
179-
retries: 3,
180-
retryAfter: 3,
179+
// timeout the request after 3 minutes
180+
timeout: 1000 * 60 * 3,
181+
// retry up to 10 times on request timeouts
182+
retries: 10,
183+
retryAfter: 10, // wait 10 seconds
181184
},
182185
};
183186

0 commit comments

Comments
 (0)