[PR #10261] [MERGED] Use IHostLifetime for Shutdown/Restart #12226

Closed
opened 2025-12-22 09:10:41 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/10261
Author: @barronpm
Created: 9/23/2023
Status: Merged
Merged: 10/3/2023
Merged by: @Bond-009

Base: masterHead: ihostlifetime


📝 Commits (5)

  • 1d8c3e0 Don't log unhandled exceptions twice
  • 493de32 Use IHostLifetime to handle restarting and shutting down
  • 59ec06c Clear active sessions on application stopping
  • f746db9 Re-add shutdown/restart methods
  • ab07902 Apply suggestions from code review

📊 Changes

10 files changed (+101 additions, -294 deletions)

View changed files

📝 Emby.Server.Implementations/ApplicationHost.cs (+18 -107)
📝 Emby.Server.Implementations/Plugins/PluginManager.cs (+10 -12)
📝 Emby.Server.Implementations/Session/SessionManager.cs (+56 -63)
📝 Jellyfin.Api/Controllers/SystemController.cs (+2 -11)
📝 Jellyfin.Server/CoreAppHost.cs (+0 -6)
📝 Jellyfin.Server/Program.cs (+8 -71)
📝 MediaBrowser.Common/IApplicationHost.cs (+6 -3)
📝 MediaBrowser.Common/Plugins/IPluginManager.cs (+0 -5)
📝 MediaBrowser.Controller/Session/ISessionManager.cs (+0 -14)
📝 tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs (+1 -2)

📄 Description

Changes
Uses the built in IHostLifetime infrastructure to handle shutdown/restart


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/10261 **Author:** [@barronpm](https://github.com/barronpm) **Created:** 9/23/2023 **Status:** ✅ Merged **Merged:** 10/3/2023 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `ihostlifetime` --- ### 📝 Commits (5) - [`1d8c3e0`](https://github.com/jellyfin/jellyfin/commit/1d8c3e088be75ce02b811afaeea20307df0487be) Don't log unhandled exceptions twice - [`493de32`](https://github.com/jellyfin/jellyfin/commit/493de3297a415061f8d6a69ff9f62261c3159a2a) Use IHostLifetime to handle restarting and shutting down - [`59ec06c`](https://github.com/jellyfin/jellyfin/commit/59ec06c35c3b958a1778a56334bdf91a2f0ccf3f) Clear active sessions on application stopping - [`f746db9`](https://github.com/jellyfin/jellyfin/commit/f746db9a54caef36bb3b32cf22812a78d97c865d) Re-add shutdown/restart methods - [`ab07902`](https://github.com/jellyfin/jellyfin/commit/ab0790271aac8846430c9689dff647eb4ce55078) Apply suggestions from code review ### 📊 Changes **10 files changed** (+101 additions, -294 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/ApplicationHost.cs` (+18 -107) 📝 `Emby.Server.Implementations/Plugins/PluginManager.cs` (+10 -12) 📝 `Emby.Server.Implementations/Session/SessionManager.cs` (+56 -63) 📝 `Jellyfin.Api/Controllers/SystemController.cs` (+2 -11) 📝 `Jellyfin.Server/CoreAppHost.cs` (+0 -6) 📝 `Jellyfin.Server/Program.cs` (+8 -71) 📝 `MediaBrowser.Common/IApplicationHost.cs` (+6 -3) 📝 `MediaBrowser.Common/Plugins/IPluginManager.cs` (+0 -5) 📝 `MediaBrowser.Controller/Session/ISessionManager.cs` (+0 -14) 📝 `tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs` (+1 -2) </details> ### 📄 Description **Changes** Uses the built in `IHostLifetime` infrastructure to handle shutdown/restart --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 09:10:41 +01:00
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: starred/jellyfin#12226
No description provided.