Oops, 30 is a multiple of fifteen.

Akinori MUSHA преди 10 години
родител
ревизия
786b0f3d06
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/models/agents/scheduler_agent.rb

+ 1 - 1
app/models/agents/scheduler_agent.rb

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