title: Setting the value of repeatInterval of Quartz in grails
body: <p>I want to fetch a value from database and then set it as a value for repeatInterval for a job in Quartz plugin in grails. I did this as under.</p>
  
  <pre><code>class StartJob {
       def interval = Settings.first().interval
  
      static triggers = {
          simple name: 'mySimpleTrigger', startDelay: 2000, repeatInterval:interval
  
      }
      def group = "MyGroup"
      def execute(){
          //do something
      }
  }
  </code></pre>
  
  <p>fetch a first row from table <code>Settings</code> and then get its interval column and put it in the simple trigger. Now the problem is that the interval is non-static and triggers are static which gives errors due to mismatching. How can I handle this situation ? Is there any way to sort this out, trigger the job from somewhere else etc.. ?</p>