Skip to content
代码片段 群组 项目
提交 cfb9f965 编辑于 作者: Suraj Tripathi's avatar Suraj Tripathi
浏览文件

Reduced lease to 30 mins

上级 89a3da03
No related branches found
No related tags found
无相关合并请求
......@@ -14,9 +14,9 @@ class Namespace::AggregationSchedule < ApplicationRecord
def self.default_lease_timeout
if Feature.enabled?(:remove_namespace_aggregator_delay)
1.hour.to_i
30.minutes.to_i
else
1.5.hours.to_i
1.hour.to_i
end
end
......
......@@ -12,14 +12,14 @@
describe "#default_lease_timeout" do
subject(:default_lease_timeout) { default_timeout }
it { is_expected.to eq 1.hour.to_i }
it { is_expected.to eq 30.minutes.to_i }
context 'when remove_namespace_aggregator_delay FF is disabled' do
before do
stub_feature_flags(remove_namespace_aggregator_delay: false)
end
it { is_expected.to eq 1.5.hours.to_i }
it { is_expected.to eq 1.hour.to_i }
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册