s
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions

This commit is contained in:
Dmitry 2025-12-11 23:50:30 +03:00
parent 0df722d3bd
commit 7d0079c563

View file

@ -61,6 +61,7 @@ void main() async {
// await Isar.initializeIsarCore(download: true);
final debugMode = Platform.environment['DEBUG'] == 'true' ||
Platform.environment['DEBUG'] == '1';
isar = await IsarConnector().connect(
dir: dir,
name: 'db',
@ -83,4 +84,10 @@ void main() async {
UpdateOnlineUsersTask(getIt.get<UserManager>()),
TasksSeederTask(),
]).init();
ProcessSignal.sigterm.watch().listen((signal) async {
await isar.close();
exit(0);
});
}