diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-21 06:09:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-21 06:09:06 +0000 |
commit | 7e6efee3b34f52a62360cb4a50f2e77cb67cf769 (patch) | |
tree | 6bfe2f6f8fc8f147269ab5020c42afad06f62785 /lib | |
parent | 22400f4dd0bd5503b3c6e4914d8dd6e1167b6c98 (diff) | |
download | gitlab-ce-7e6efee3b34f52a62360cb4a50f2e77cb67cf769.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/ci/runner.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/api/ci/runner.rb b/lib/api/ci/runner.rb index d61171ea9f4..b722a21ac33 100644 --- a/lib/api/ci/runner.rb +++ b/lib/api/ci/runner.rb @@ -141,7 +141,7 @@ module API optional :certificate, type: String, desc: %q(Session's certificate) optional :authorization, type: String, desc: %q(Session's authorization) end - optional :job_age, type: Integer, desc: %q(Job should be older than passed age in seconds to be ran on runner) + optional :job_age, type: Integer, desc: %q(DEPRECATED and will be REMOVED in GitLab 16.0. Job should be older than passed age in seconds to be ran on runner) end # Since we serialize the build output ourselves to ensure Gitaly @@ -167,6 +167,10 @@ module API runner_params = declared_params(include_missing: false) + if Feature.enabled?(:remove_job_age_from_jobs_api) + runner_params.delete(:job_age) + end + if current_runner.runner_queue_value_latest?(runner_params[:last_update]) header 'X-GitLab-Last-Update', runner_params[:last_update] Gitlab::Metrics.add_event(:build_not_found_cached) |