Add feature flag to schedulable? method

This commit is contained in:
Shinya Maeda 2018-09-25 14:39:32 +09:00 committed by Alessio Caiazza
parent e0cfa9279c
commit f76f6df193

View file

@ -260,7 +260,8 @@ module Ci
end
def schedulable?
self.when == 'delayed' && options[:start_in].present?
Feature.enabled?('ci_enable_scheduled_build') &&
self.when == 'delayed' && options[:start_in].present?
end
def options_scheduled_at