summaryrefslogtreecommitdiff
path: root/lib/api/ci/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/ci/runner.rb')
-rw-r--r--lib/api/ci/runner.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/ci/runner.rb b/lib/api/ci/runner.rb
index c5249f1377b..33980b38e2b 100644
--- a/lib/api/ci/runner.rb
+++ b/lib/api/ci/runner.rb
@@ -184,6 +184,8 @@ module API
.new(job, declared_params(include_missing: false))
service.execute.then do |result|
+ track_ci_minutes_usage!(job, current_runner)
+
header 'X-GitLab-Trace-Update-Interval', result.backoff
status result.status
body result.status.to_s
@@ -214,6 +216,8 @@ module API
break error!('416 Range Not Satisfiable', 416, { 'Range' => "0-#{result.stream_size}" })
end
+ track_ci_minutes_usage!(job, current_runner)
+
status result.status
header 'Job-Status', job.status
header 'Range', "0-#{result.stream_size}"