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

Add feature flag to schedulable? method

parent e0cfa927
......@@ -260,6 +260,7 @@ module Ci
end
def schedulable?
Feature.enabled?('ci_enable_scheduled_build') &&
self.when == 'delayed' && options[:start_in].present?
end
......
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