You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
This is a simple API to count the number of queued GitHub Actions jobs for all repositories in a GitHub organization. The API is intended to be used as a KEDA metric-api scaler to adjust the number of GitHub runners dynamically based on the job queue length.
4
4
5
5
## Features
6
-
Fetches and counts the number of queued jobs across all repositories in a GitHub organization.
6
+
Fetches and counts the number of queued jobs across all repositories in a GitHub organization. Queries only repos that have been updated not longer than one year ago. Repo list is cached for 10 minutes.
7
7
Caches the result for a configurable amount of time to reduce the number of API calls to GitHub.
8
8
Supports both GitHub Enterprise and public GitHub by automatically adjusting API URLs.
9
9
Exposes an HTTP endpoint to return the queued jobs count in JSON format.
@@ -74,7 +74,7 @@ metadata:
74
74
name: github-runner
75
75
spec:
76
76
scaleTargetRef:
77
-
name: github-runner
77
+
name: github-runner-worker
78
78
pollingInterval: 120
79
79
cooldownPeriod: 600
80
80
minReplicaCount: 1
@@ -113,5 +113,6 @@ Copy code
113
113
Permissions: repo, workflow
114
114
- GITHUB_RUNNER_SCALER_CACHE_TIMEOUT: Cache duration in seconds.
115
115
Default: 60 seconds
116
+
- GITHUB_RUNNER_LABEL: check jobs only for this label (optional)
0 commit comments