thread safety - How to Configuring concurrent execution property as false in grails -
hi new grails , using quartz plug-in scheduling jobs. scheduled job every 60 sec taking more 60 sec times in case 1 more threads started , first thread still running can 1 tell me how execute threads sequentially 1 one.
when using grails quartz plugin can set concurrent property false avoid concurrent executions of job:
class myjob { static triggers = { ... } def concurrent = false def execute(context) { ... } }
if using quartz plain dependency (not grails plugin) need extend statefuljob
(quartz < 2.0) or set @statefuljob
, @disallowconcurrentexecution
annotations (quartz >= 2.0).
grails thread-safety quartz-scheduler
No comments:
Post a Comment