summaryrefslogtreecommitdiff
path: root/app/services/ci/register_job_service.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-08-10 20:05:44 +0200
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-08-10 20:05:44 +0200
commit63ccb760245f6fc9609105e00ac3fea98ece8b83 (patch)
tree7114e90ed2d494d345b99bf309544be0dccef195 /app/services/ci/register_job_service.rb
parent0ff2f664256299e1d7da84632a58fd9c3a712612 (diff)
downloadgitlab-ce-63ccb760245f6fc9609105e00ac3fea98ece8b83.tar.gz
Fix wrong method call on prometheus histogramzj-fix-prom-metrics
Diffstat (limited to 'app/services/ci/register_job_service.rb')
-rw-r--r--app/services/ci/register_job_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/ci/register_job_service.rb b/app/services/ci/register_job_service.rb
index fc87bd6a659..414f672cc6a 100644
--- a/app/services/ci/register_job_service.rb
+++ b/app/services/ci/register_job_service.rb
@@ -85,13 +85,13 @@ module Ci
end
def register_failure
- failed_attempt_counter.increase
- attempt_counter.increase
+ failed_attempt_counter.increment
+ attempt_counter.increment
end
def register_success(job)
job_queue_duration_seconds.observe({ shared_runner: @runner.shared? }, Time.now - job.created_at)
- attempt_counter.increase
+ attempt_counter.increment
end
def failed_attempt_counter