TB-75 Service shutdown added
This commit is contained in:
parent
5251782c97
commit
f7b0ec98b6
@ -34,6 +34,7 @@ import org.thingsboard.server.dao.timeseries.TimeseriesDao;
|
||||
import org.thingsboard.server.dao.util.SqlDao;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import javax.annotation.PreDestroy;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
@ -262,4 +263,9 @@ public class JpaTimeseriesDao extends JpaAbstractDaoListeningExecutorService imp
|
||||
});
|
||||
}
|
||||
|
||||
@PreDestroy
|
||||
void onDestroy() {
|
||||
insertService.shutdown();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user