Asynchronous quartz work scheduling

Make java Quartz Scheduler support asynchronous job scheduling. If so, the default or need to configure tasks for asynchronous startup.

+4
source share
2 answers

Not only does he support this behavior, but in principle there is no other way. When you schedule a task and a trigger (in any thread), this task will run asynchronously in the thread pool. You have some control over this thread pool, like the number of threads.

Another problem is the parallel execution of the same task. By default, the same task can be executed in several threads launched by different threads if the task is not operational.

+4
source

Yes, and this should be the default. I use Quartz in my Grails application for my site, and it spins new themes for every job.

+1
source

All Articles