micronaut-mongodb icon indicating copy to clipboard operation
micronaut-mongodb copied to clipboard

Feature request: Delay closing the connection pool on server shutdown

Open lucaslilja opened this issue 3 years ago • 0 comments

Hi,

I would like to have the option to delay closing the connection pool on server shutdown. This would be used to do database inserts/updates when the server is shutting down:

@EventListener public void onApplicationShutdown(ApplicationShutdownEvent event) { //Do some db operation } Currently when this is run, the connection pool is already closed.

lucaslilja avatar Mar 15 '21 08:03 lucaslilja