mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-25 22:48:31 +00:00
wait for tasks to complete when shutting down
This commit is contained in:
@@ -10,7 +10,9 @@ import com.commafeed.security.password.PasswordConstraintValidator;
|
||||
import io.quarkus.runtime.ShutdownEvent;
|
||||
import io.quarkus.runtime.StartupEvent;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@Slf4j
|
||||
@Singleton
|
||||
@RequiredArgsConstructor
|
||||
public class CommaFeedApplication {
|
||||
@@ -27,6 +29,8 @@ public class CommaFeedApplication {
|
||||
}
|
||||
|
||||
public void stop(@Observes ShutdownEvent ev) {
|
||||
log.info("shutting down...");
|
||||
|
||||
feedRefreshEngine.stop();
|
||||
taskScheduler.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user