[PR 26] Implement Graceful Application Shutdown (E7.S7) #72

Closed
opened 2025-06-25 00:13:18 +00:00 by rwachters · 0 comments
rwachters commented 2025-06-25 00:13:18 +00:00 (Migrated from github.com)

Summary

Implement logic for graceful shutdown of the application, including server, database, and resource cleanup.

Details

  • Add logic in AppMain.kt to handle window close/OS termination signals.
  • Properly stop the embedded Ktor server.
  • Properly close the SQLite database connection.
  • Dispose of other resources (like Ktor HttpClient).
  • Ensure ViewModelScopes are cancelled (handled by KMP ViewModel integration).

Dependencies

  • PR 7 (Server startup)
  • PR 5 (DB setup)

Tests

  • Manual and automated tests for shutdown and resource cleanup.

Assignee

Eric

Labels

backend, server, shutdown, good first issue

## Summary Implement logic for graceful shutdown of the application, including server, database, and resource cleanup. ## Details - Add logic in `AppMain.kt` to handle window close/OS termination signals. - Properly stop the embedded Ktor server. - Properly close the SQLite database connection. - Dispose of other resources (like Ktor HttpClient). - Ensure ViewModelScopes are cancelled (handled by KMP ViewModel integration). ## Dependencies - PR 7 (Server startup) - PR 5 (DB setup) ## Tests - Manual and automated tests for shutdown and resource cleanup. ## Assignee Eric ## Labels backend, server, shutdown, good first issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Torvian.eu/chatbot#72
No description provided.