Skip to content

Retry lambda ignores ENABLE_JOB_QUEUED_CHECK #5421

Description

@atsikham

Description

The main scale-up path has a config flag, ENABLE_JOB_QUEUED_CHECK, that skips an API call to GitHub that checks whether a job is still queued before creating a runner for it. The retry lambda does not check this flag — it always makes that call, on every retry attempt.

Impact

Turning off ENABLE_JOB_QUEUED_CHECK does not fully turn off the check: the retry path keeps calling GitHub's API for every retry, using up rate-limit budget the flag was meant to save. This makes the flag behave inconsistently depending on which lambda handles a given job.

Proposed fix

Read the same ENABLE_JOB_QUEUED_CHECK flag in the retry lambda, and skip the check there too when it's turned off — matching the main scale-up path.

See PR (to follow) for the implementation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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