Skip to content

Commit 611cdfe

Browse files
committed
Added debug for queued events function
1 parent f4b259f commit 611cdfe

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ export async function isJobQueued(githubInstallationClient: Octokit, payload: Ac
148148
});
149149
metricGitHubAppRateLimit(jobForWorkflowRun.headers);
150150
isQueued = jobForWorkflowRun.data.status === 'queued';
151+
if (!isQueued) {
152+
logger.info(`Job ${payload.id} is not queued`);
153+
}
154+
else {
155+
logger.info(`Job ${payload.id} is queued`);
156+
}
151157
} else {
152158
throw Error(`Event ${payload.eventType} is not supported`);
153159
}

0 commit comments

Comments
 (0)