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