Skip to content

Commit

Permalink
Merge pull request #2527 from opengovern/fix-migrator
Browse files Browse the repository at this point in the history
fix: nil pointer handle scheduler
  • Loading branch information
artaasadi authored Jan 22, 2025
2 parents be028be + 7463c7b commit b0a2b7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/scheduler/scheduler_describe_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ func (s *Scheduler) RunDescribeJobResultsConsumer(ctx context.Context) error {
if err != nil {
s.logger.Error("failed to get describe integration job by id", zap.Uint("job_id", result.JobID))
}
if job == nil {
return
}
var params map[string]string
if job.Parameters.Status == pgtype.Present {
if err := json.Unmarshal(job.Parameters.Bytes, &params); err != nil {
Expand Down

0 comments on commit b0a2b7d

Please sign in to comment.