CherishCai commented on issue #2074:
URL: 
https://github.com/apache/shardingsphere-elasticjob/issues/2074#issuecomment-1220540811

   Maybe add a ShutdownHook on spring Environment,  should in 
ScheduleJobBootstrapStartupRunner?
   
   ```java
           Runtime.getRuntime().addShutdownHook(()->{
               
applicationContext.getBeansOfType(JobBootstrap).values().forEach(JobBootstrap::shutdown);
           });
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to