worker/server: remove duplicate metrics
Remove a duplicate call to the `DequeueJobMetrics` function in the worker server. This duplicate call resulted in negative numbers for pending jobs in the prometheus metrics.
This commit is contained in:
parent
ac522a58ee
commit
8b4aff3857
1 changed files with 0 additions and 2 deletions
|
|
@ -505,8 +505,6 @@ func (s *Server) requestJob(ctx context.Context, arch string, jobTypes []string,
|
|||
jobType, channel, status, _, err := s.jobStatus(jobId, nil)
|
||||
if err != nil {
|
||||
logrus.Errorf("error retrieving job status: %v", err)
|
||||
} else {
|
||||
prometheus.DequeueJobMetrics(status.Queued, status.Started, jobType, channel)
|
||||
}
|
||||
|
||||
// Record how long the job has been pending for, that is either how
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue