Oops, 30 is a multiple of fifteen.

This commit is contained in:
Akinori MUSHA 2014-09-04 14:05:40 +09:00
parent 38de860670
commit 786b0f3d06

View file

@ -95,7 +95,7 @@ module Agents
if (spec = options['schedule']).present?
begin
cron = Rufus::Scheduler::CronLine.new(spec)
unless second_precision_enabled || (cron.seconds - [0, 15, 45, 60]).empty?
unless second_precision_enabled || (cron.seconds - [0, 15, 30, 45, 60]).empty?
errors.add(:base, "second precision schedule is not allowed in this service")
end
rescue ArgumentError