Skip to content

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • lambdas/functions/control-plane/src/scale-runners

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

Lines changed: 1 addition & 0 deletions
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)