Skip to content

Instantly share code, notes, and snippets.

@robertoschwald
Last active November 15, 2019 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertoschwald/d532c81f15916f72ea51b9e78654101c to your computer and use it in GitHub Desktop.
Save robertoschwald/d532c81f15916f72ea51b9e78654101c to your computer and use it in GitHub Desktop.
Grails 3.x Quartz-Plugin 2.0.0 application.yml configuration for clustering support
quartz:
autoStartup: true
jdbcStore: true
sheduler:
instanceName: myapp_quartz
instanceId: AUTO
skipUpdateCheck: true
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 5
threadPriority: 5
jobStore:
misfireThreshold: 60000
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
useProperties: false
tablePrefix: QRTZ_
isClustered: true
clusterCheckinInterval: 1000
plugin:
shutdownhook:
class: org.quartz.plugins.management.ShutdownHookPlugin
cleanShutdown: true
triggerHistory:
class: org.quartz.plugins.history.LoggingTriggerHistoryPlugin
jobHistory:
class: org.quartz.plugins.history.LoggingJobHistoryPlugin
@iballbar
Copy link

iballbar commented Mar 5, 2019

I follow this config and got the message >> Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.
grails version: 3.3.8
quartz plugins: 2.0.13
update:
Change to use config in application.groovy its work perfectly, thanks.

@devisBSeibt
Copy link

There is a 'c' missing above in 'sheduler' once I added that it worked as expected. Thanks
grails version: 3.3.9
quartz plugin: 2.0.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment