diff options
Diffstat (limited to 'app/workers/projects/refresh_build_artifacts_size_statistics_worker.rb')
-rw-r--r-- | app/workers/projects/refresh_build_artifacts_size_statistics_worker.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/workers/projects/refresh_build_artifacts_size_statistics_worker.rb b/app/workers/projects/refresh_build_artifacts_size_statistics_worker.rb index a91af72cc2c..705bf0534f7 100644 --- a/app/workers/projects/refresh_build_artifacts_size_statistics_worker.rb +++ b/app/workers/projects/refresh_build_artifacts_size_statistics_worker.rb @@ -5,10 +5,6 @@ module Projects include ApplicationWorker include LimitedCapacity::Worker - MAX_RUNNING_LOW = 2 - MAX_RUNNING_MEDIUM = 20 - MAX_RUNNING_HIGH = 50 - data_consistency :always feature_category :build_artifacts @@ -37,12 +33,8 @@ module Projects end def max_running_jobs - if ::Feature.enabled?(:projects_build_artifacts_size_refresh_high) - MAX_RUNNING_HIGH - elsif ::Feature.enabled?(:projects_build_artifacts_size_refresh_medium) - MAX_RUNNING_MEDIUM - elsif ::Feature.enabled?(:projects_build_artifacts_size_refresh_low) - MAX_RUNNING_LOW + if ::Feature.enabled?(:projects_build_artifacts_size_refresh, type: :ops) + 10 else 0 end |