Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 2e69cfd

Browse files
authored
chore: Added debug for queued events function (#4312)
When working out a job is queued or not, we do it within a function. However, when we do it within this function there is very little ability to see what the response was when debugging is enabled. So this PR is allowing us to see what was determined from the function.
1 parent 866a1e7 commit 2e69cfd

File tree

1 file changed

+1
-0
lines changed
  • lambdas/functions/control-plane/src/scale-runners

1 file changed

+1
-0
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-up.ts

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export async function isJobQueued(githubInstallationClient: Octokit, payload: Ac
148148
});
149149
metricGitHubAppRateLimit(jobForWorkflowRun.headers);
150150
isQueued = jobForWorkflowRun.data.status === 'queued';
151+
logger.debug(`The job ${payload.id} is${isQueued ? ' ' : 'not'} queued`);
151152
} else {
152153
throw Error(`Event ${payload.eventType} is not supported`);
153154
}

0 commit comments

Comments
 (0)