Skip to content

Commit 4043488

Browse files
authored
adjust repeat-recent (#341)
* GitHub actually triggers the cron workflow every few hours. Because they are overloaded I suppose. This PR is an attempt to give the workflow more chances to be triggered. * Sometimes we run into secondary rate limiting of the GitHub API when repeating recent requests. Having less workers should fix this.
1 parent 807aa45 commit 4043488

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/repeat-recent-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
# │ │ │ │ │
1111
# │ │ │ │ │
1212
# * * * * *
13-
- cron: "45 * * * *"
13+
- cron: "15,45 * * * *"
1414
workflow_dispatch:
1515

1616
jobs:

apps/backend/src/repeatRequests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ export async function repeatRecentRequests() {
6666
if (urls.length === 0) {
6767
console.log("No recent requests found.");
6868
} else {
69-
await makeRequests(urls, 5);
69+
await makeRequests(urls, 3);
7070
}
7171
}

0 commit comments

Comments
 (0)