Commit efe81265 authored by Bruno Duyé's avatar Bruno Duyé

Minor

parent 7c975727
......@@ -120,7 +120,7 @@ def get_metrics(solr, gl):
log.debug(" * get fetchers running jobs for {!r} ({})".format(provider_slug, project.id))
provider_running_jobs = [job for job in project.jobs.list() if job.status == 'running']
provider_nb_running_jobs = len(provider_running_jobs)
metrics['running-jobs{provider={' + provider_slug + '}'] = provider_nb_running_jobs
metrics['running-jobs{provider="' + provider_slug + '"}'] = provider_nb_running_jobs
nb_running_jobs_total += provider_nb_running_jobs
metrics['running-jobs-total'] = nb_running_jobs_total
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment