Skip to content

Commit

Permalink
chore: add debug log stmt for incom. job events
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Constanti <[email protected]>
  • Loading branch information
bavarianbidi committed Jun 5, 2024
1 parent 2497686 commit f3d48df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runner/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@ func (r *basePoolManager) HandleWorkflowJob(job params.WorkflowJob) error {
"requested_tags", strings.Join(jobParams.Labels, ", "))
return
}

slog.DebugContext(
r.ctx, "handling job event",
"job_id", job.WorkflowJob.ID,
"job_action", job.Action,
"job_conclusion", job.WorkflowJob.Conclusion,
"job_runner_name", job.WorkflowJob.RunnerName,
"potential_pools", len(potentialPools))

if len(potentialPools) == 0 {
slog.WarnContext(
r.ctx, "no pools matching tags; not recording job",
Expand Down

0 comments on commit f3d48df

Please sign in to comment.