Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jobs not starting with 2.0.12 on Grails 3.0.17 #87

Open
zoladkow opened this issue Apr 7, 2017 · 9 comments
Open

Jobs not starting with 2.0.12 on Grails 3.0.17 #87

zoladkow opened this issue Apr 7, 2017 · 9 comments

Comments

@zoladkow
Copy link

zoladkow commented Apr 7, 2017

Hi,

On our project we decided to give version 2.0.12 a go (up from 2.0.8) and, from the logs of it, the jobs are not started.

application.yml:

quartz:
    autoStartup: true
    jdbcStore: false

One of the job triggers & config:

    static triggers = {
        simple name: 'ldapTrigger', startDelay: 30 * 1000, repeatInterval: 10 * 60 * 1000
    }
    String group = 'LdapGroup'
    String description = 'Synchronizes LDAP users into local cache'
    Boolean sessionRequired = Boolean.FALSE
    Boolean concurrent = Boolean.FALSE

Startup log related to Quartz:

2017-04-07 19:25:01.284 [main] INFO  [][] o.q.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
2017-04-07 19:25:01.441 [main] INFO  [][] o.q.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2017-04-07 19:25:01.441 [main] INFO  [][] org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.2.3 created.
2017-04-07 19:25:01.460 [main] INFO  [][] org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
2017-04-07 19:25:01.461 [main] INFO  [][] org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.2.3) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

2017-04-07 19:25:01.461 [main] INFO  [][] o.q.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.

2017-04-07 19:25:01.461 [main] INFO  [][] o.q.impl.StdSchedulerFactory - Quartz scheduler version: 2.2.3
2017-04-07 19:25:01.463 [main] INFO  [][] org.quartz.core.QuartzScheduler - JobFactory set to: grails.plugins.quartz.GrailsJobFactory@57554f95

Will also try with 2.0.11 and get back with result...

@davydotcom
Copy link
Contributor

davydotcom commented Apr 7, 2017 via email

@zoladkow
Copy link
Author

zoladkow commented Apr 7, 2017

Ok, my bad. I did not mention that this was the only log fragment related to this plugin. Even after a few minutes.
There are 4 jobs we have. None started. The one shown above should start with a delay of 30s.
Can't see what changed that could impact this, did I miss a new mandatory setting?

A breakpoint at QuartzGrailsPlugin.onStartup() was not hit if that helps.

@davydotcom
Copy link
Contributor

davydotcom commented Apr 7, 2017 via email

@zoladkow
Copy link
Author

zoladkow commented Apr 8, 2017

So the same happens for 2.0.10, 2.0.11

The thing is that in 2.0.9 there is no onStartup() at all, just doWithApplicationContext(). I was only looking through release changes and missed that (5d08900).

So basically 2.0.9 is the last version compatible with Grails 3.0.x right?

@davydotcom
Copy link
Contributor

davydotcom commented Apr 8, 2017 via email

@dcbenwu
Copy link

dcbenwu commented Jul 19, 2018

Jobs not start after a few days. quartz:2.0.12 with grails 3.2.11.
I config a job like "cron name: 'ScanJob', cronExpression: "0 30 0 * * ? *"
no exception comes out? How to track it?

@ppazos
Copy link

ppazos commented Jun 28, 2020

jobs are not starting in grails 3.3.10 with quartz 2.0.13

@j1m-renwick
Copy link

j1m-renwick commented Nov 21, 2021

So the same happens for 2.0.10, 2.0.11

The thing is that in 2.0.9 there is no onStartup() at all, just doWithApplicationContext(). I was only looking through release changes and missed that (5d08900).

So basically 2.0.9 is the last version compatible with Grails 3.0.x right?

@zoladkow @davydotcom I know this is a very old thread but do you remember anything about the outcome of this? Our application on Grails 3.2.13 is having start-up issues using any Quartz plugin version after 2.0.9 - the bootstrap class is not being run on application startup, and the Quartz plugin version seems to be the reason why...

@zoladkow
Copy link
Author

@zoladkow @davydotcom I know this is a very old thread but do you remember anything about the outcome of this? Our application on Grails 3.2.13 is having start-up issues using any Quartz plugin version after 2.0.9 - the bootstrap class is not being run on application startup, and the Quartz plugin version seems to be the reason why...

@j1m-renwick I believe we moved to Grails 3.3.11 (which had a bunch of other quirks on it's own) and stick to Quartz plugin 2.0.9 to this day since newer versions didn't bring anything of value anyways... unless I'm wrong.

Wow, 4 years already, time sure flies...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants