Update database/sql/jobs.go

Co-authored-by: Gabriel <samfiragabriel@gmail.com>
This commit is contained in:
Michael Kuhnt 2024-11-22 16:40:23 +01:00 committed by GitHub
parent 8a31d81faf
commit 935c9dcd96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ func (s *sqlDatabase) paramsJobToWorkflowJob(ctx context.Context, job params.Job
instance, err := s.getInstanceByName(s.ctx, job.RunnerName)
if err != nil {
// This usually is very normal as not all jobs run on our runners.
slog.DebugContext(ctx, fmt.Sprintf("failed to get instance by name: %s", job.RunnerName))
slog.DebugContext(ctx, "failed to get instance by name", "instance_name", job.RunnerName)
} else {
workflofJob.InstanceID = &instance.ID
}