Commit f76f6df1 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Add feature flag to schedulable? method

parent e0cfa927
...@@ -260,7 +260,8 @@ module Ci ...@@ -260,7 +260,8 @@ module Ci
end end
def schedulable? def schedulable?
self.when == 'delayed' && options[:start_in].present? Feature.enabled?('ci_enable_scheduled_build') &&
self.when == 'delayed' && options[:start_in].present?
end end
def options_scheduled_at def options_scheduled_at
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment