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:
Gianluca Zuccarelli 2022-07-19 13:19:54 +01:00 committed by Tomáš Hozza
parent ac522a58ee
commit 8b4aff3857

View file

@ -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