You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the QuartzScheduler's start method.
I find quartz will start the QuartzSchedulerThread in QuartzScheduler 's constructor. This seems not needed, if the QuartzScheduler doesn't start, the QuartzSchedulerThread seems only block in a loop
while (paused && !halted.get()) {
try {
// wait until togglePause(false) is called...sigLock.wait(1000L);
} catch (InterruptedExceptionignore) {
}
// reset failure counter when paused, so that we don't// wait again after unpausingacquiresFailed = 0;
}
The text was updated successfully, but these errors were encountered:
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 loopThe text was updated successfully, but these errors were encountered: