Skip to content

Commit

Permalink
fix: Metric push (#192)
Browse files Browse the repository at this point in the history
* fix : handle error
  • Loading branch information
Mryashbhardwaj committed Jan 23, 2024
1 parent d27028a commit 36de79c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/scheduler/service/job_run_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ func (s *JobRunService) raiseJobRunStateChangeEvent(jobRun *scheduler.JobRun) {
"status": jobRun.State.String(),
}, 1)
if err != nil {
s.l.Error("failed metric push", err)
if !strings.Contains(err.Error(), "status code 204") {
s.l.Error("failed metric push", err)
}
}
}

Expand Down

0 comments on commit 36de79c

Please sign in to comment.