Skip to content

Large amount of GetEntityJITConfig operations when rate limit is reached #616

@SystemKeeper

Description

@SystemKeeper
Image

The green line is the remaining rate limit, the yellow line is GetEntityJITConfig on github operations.

In the logs I see a huge number of

garm.log:time=2026-02-11T16:06:57.699+01:00 level=ERROR msg="could not add runner to pool" error="failed to add new instance for pool f2a3662a-bc35-4c0a-9c3a-db0bb944f03c: failed to generate JIT config: failed to get JIT config: POST https://api.github.com/orgs/<org>/actions/runners/generate-jitconfig: 403 API rate limit of 5000 still exceeded until 2026-02-11 16:14:55 +0100 CET, not making remote request. [rate reset in 7m57s]" pool_id=f2a3662a-bc35-4c0a-9c3a-db0bb944f03c pool_mgr=<org> endpoint=github.com pool_type=organization
garm.log:time=2026-02-11T16:06:57.701+01:00 level=ERROR msg="could not add runner to pool" error="failed to add new instance for pool f2a3662a-bc35-4c0a-9c3a-db0bb944f03c: failed to generate JIT config: failed to get JIT config: POST https://api.github.com/orgs/<org>/actions/runners/generate-jitconfig: 403 API rate limit of 5000 still exceeded until 2026-02-11 16:14:55 +0100 CET, not making remote request. [rate reset in 7m57s]" pool_id=f2a3662a-bc35-4c0a-9c3a-db0bb944f03c pool_mgr=<org> endpoint=github.com pool_type=organization
garm.log:time=2026-02-11T16:06:57.704+01:00 level=ERROR msg="could not add runner to pool" error="failed to add new instance for pool f2a3662a-bc35-4c0a-9c3a-db0bb944f03c: failed to generate JIT config: failed to get JIT config: POST https://api.github.com/orgs/<org>/actions/runners/generate-jitconfig: 403 API rate limit of 5000 still exceeded until 2026-02-11 16:14:55 +0100 CET, not making remote request. [rate reset in 7m57s]" pool_id=f2a3662a-bc35-4c0a-9c3a-db0bb944f03c pool_mgr=<org> endpoint=github.com pool_type=organization
garm.log:time=2026-02-11T16:06:57.710+01:00 level=ERROR msg="could not add runner to pool" error="failed to add new instance for pool f2a3662a-bc35-4c0a-9c3a-db0bb944f03c: failed to generate JIT config: failed to get JIT config: POST https://api.github.com/orgs/<org>/actions/runners/generate-jitconfig: 403 API rate limit of 5000 still exceeded until 2026-02-11 16:14:55 +0100 CET, not making remote request. [rate reset in 7m57s]" pool_id=f2a3662a-bc35-4c0a-9c3a-db0bb944f03c pool_mgr=<org> endpoint=github.com pool_type=organization
...

I guess we should slow that down? I am not sure how to interpret "not making remote request." - I was unable to find that part in the code?
Are we actually hitting the API or not? The message says no, but the POST 403 could suggest otherwise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions