mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-11 10:42:02 +00:00
Adjust triage bot rate limit (#21471)
# Summary This PR updates the triage bots schedule and raises the operations-per-run limit. # Details Previous actions have been implemented using a defensive approach to test the bots runtime and rate limits. At the moment the single run at 6 in the morning utilized `0,0066`% of our hourly GitHub API rate limit. With those settings we will be done with the currently open 800 issues in ~1/3 year. This PR updates the schedule to hourly and raises the API limit to 100 (3x of the default, out of 4500 API calls per hour, based of the stale action execution log). - Hourly will make the bot much more responsive (after the 800 issues have been ~~purged~~ processed). - A higher rate will allow the current state to be processed faster and will provide better response to higher workloads in the future. - The cache continues to handle any workload above 100 operations-per-run.
This commit is contained in:
7
.github/workflows/stale.yml
vendored
7
.github/workflows/stale.yml
vendored
@@ -2,8 +2,8 @@ name: "Stale bot - Issue and PR triage"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Run every day at 6 AM UTC - Daily run to utilize all operations-per-run without getting rate limited
|
||||
- cron: "0 6 * * *"
|
||||
# Run every hour
|
||||
- cron: "0 * * * *"
|
||||
workflow_dispatch: # Allow manual trigger
|
||||
|
||||
permissions:
|
||||
@@ -17,6 +17,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
# --- Global settings ---
|
||||
operations-per-run: 100
|
||||
|
||||
# --- Issue settings ---
|
||||
days-before-issue-stale: 60
|
||||
days-before-issue-close: 30
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: FabianK3
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Update the repositories triage bot to run every full hour with an adjusted rate limit."
|
||||
Reference in New Issue
Block a user