Skip to content

Commit

Permalink
chore: Added debug for queued events function (#4312)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stuartp44 authored Dec 20, 2024
1 parent 866a1e7 commit 2e69cfd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export async function isJobQueued(githubInstallationClient: Octokit, payload: Ac
});
metricGitHubAppRateLimit(jobForWorkflowRun.headers);
isQueued = jobForWorkflowRun.data.status === 'queued';
logger.debug(`The job ${payload.id} is${isQueued ? ' ' : 'not'} queued`);
} else {
throw Error(`Event ${payload.eventType} is not supported`);
}
Expand Down

0 comments on commit 2e69cfd

Please sign in to comment.