diff options
author | Fabio Pitino <fpitino@gitlab.com> | 2019-08-19 16:29:53 +0200 |
---|---|---|
committer | Fabio Pitino <fpitino@gitlab.com> | 2019-08-21 10:03:07 +0200 |
commit | 45c5144e36e73c80e34282dda7b7c1c32a1fc0ea (patch) | |
tree | 14f92cdfed1f68c5e317aa3bfc4be069138423ed /lib | |
parent | 3ac4a2989d28f868f71a88b21466c301dca377b4 (diff) | |
download | gitlab-ce-45c5144e36e73c80e34282dda7b7c1c32a1fc0ea.tar.gz |
Add active_jobs_limit to plans table
This is a port from EE changes where
we introduce a new limit for Plan model.
https://dev.gitlab.org/gitlab/gitlab-ee/merge_requests/1182
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/limit/job_activity.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/limit/job_activity.rb b/lib/gitlab/ci/pipeline/chain/limit/job_activity.rb new file mode 100644 index 00000000000..31c218bf954 --- /dev/null +++ b/lib/gitlab/ci/pipeline/chain/limit/job_activity.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Gitlab + module Ci + module Pipeline + module Chain + module Limit + class JobActivity < Chain::Base + def perform! + # to be overridden in EE + end + + def break? + false # to be overridden in EE + end + end + end + end + end + end +end |