Open ruanwenjun opened 11 months ago
@ruanwenjun can we add the schedThreadExecutor.execute(this.schedThread); line in the start method of the QuartzScheduler class?
@ruanwenjun can we add the schedThreadExecutor.execute(this.schedThread); line in the start method of the QuartzScheduler class?
LGTM, if we can move the execute method move to start.
On initial cursory look, probably safe. I think (at least) past versions of the code relied upon the thread running even when used the way the poster describes - thus probably worth a closer look before any change is made.
Hi team,
Right now, I have two server, one is a web, and another is worker. The web server is used to CRUD Job and bind Trigger to Job, the worker server is used to execute the Job. Due to some reason, I cannot execute Job in portal server.
I use
QuartzScheduler
to CRUD Job and bind Trigger in web server, so I just initialize QuartzScheduler and don't execute theQuartzScheduler
's start method.I find quartz will start the
QuartzSchedulerThread
inQuartzScheduler
's constructor. This seems not needed, if the QuartzScheduler doesn't start, the QuartzSchedulerThread seems only block in a loop