Quartz Plugin

Specifiing repeatCount = 0 doesn't work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.3.2
  • Fix Version/s: 0.3.3
  • Component/s: None
  • Labels:
    None

Description

class InitializeMonitorsJob {
   static triggers = {
       simpleTrigger startDelay: 5000, timeout: 30000, repeatCount: 0
   }
   def execute() {
       println "Schedule"
   }
}

Instead of firing once, the job fires every thirty seconds.

Activity

Hide
Sergey Nebolsin added a comment -

Fixed in rev. 41760

Show
Sergey Nebolsin added a comment - Fixed in rev. 41760
Hide
Marc Palmer added a comment -

How is this fixed Sergey? Isn't 0 used to indicate "infinite" ?

Show
Marc Palmer added a comment - How is this fixed Sergey? Isn't 0 used to indicate "infinite" ?
Hide
Sergey Nebolsin added a comment -

Nope, infinite is -1, see SimpleTrigger.REPEAT_INDEFINITELY constant. 0 means "no repeats", so the job will be executed only once.

Show
Sergey Nebolsin added a comment - Nope, infinite is -1, see SimpleTrigger.REPEAT_INDEFINITELY constant. 0 means "no repeats", so the job will be executed only once.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: