-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Description
Question
For English only, other languages will not accept.
Before asking a question, make sure you have:
- Googled your question.
- Searched open and closed GitHub issues.
- Read documentation: ElasticJob Doc.
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
version: 3.0.4
Single Instance shutdown
JobScheduler.java
public void shutdown() {
setUpFacade.tearDown();
schedulerFacade.shutdownInstance();
jobExecutor.shutdown();
}Other instances response listener shutdown
InstanceShutdownStatusJobListener.java
public void onChange(final DataChangedEvent event) {
//..
schedulerFacade.shutdownInstance();
//..
}There is a problem other instances response listener shutdown ,Not executed setUpFacade.tearDown() and jobExecutor.shutdown()
setUpFacade.tearDown()
public void tearDown() {
regCenter.removeConnStateListener("/" + this.jobName);
regCenter.removeDataListeners("/" + this.jobName);
if (reconcileService.isRunning()) {
reconcileService.stopAsync();
}
}jobExecutor.shutdown()
public void shutdown() {
executorContext.shutdown();
}