Skip to content

Commit a56c39f

Browse files
committed
fix(github): the PR limits sweep takes at most 150 last looks a run
At 200, a run in which every read needed all four attempts made 1,152 requests, over the token's 1,000 GraphQL points an hour. At 150 that case is 952.
1 parent 820c430 commit a56c39f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/scripts/pr-limits.cjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const NOTICE_MS = 72 * HOUR_MS;
99
const MAX_REQUESTS_PER_RUN = 100;
1010
const MAX_CLOSES_PER_RUN = 50;
1111
// A last look that ends in "not today" closes nothing, so the looks need a cap of their own.
12-
const MAX_RECHECKS_PER_RUN = 200;
12+
const MAX_RECHECKS_PER_RUN = 150;
1313
const WRITE_PAUSE_MS = 1_000;
1414
// Measured here: about two and a half minutes until every open PR has an answer.
1515
const MERGEABLE_WAIT_MS = 150_000;

0 commit comments

Comments
 (0)