Skip to content

Commit 2668e35

Browse files
authored
Feature: Allow JEA-Session to update IfW process priority (#776)
* Improves JEA-Sessions by allowing the daemon to update the IfW process priority * Adds changelog
1 parent 1c993ba commit 2668e35

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1919

2020
* [#766](https://github.com/Icinga/icinga-powershell-framework/issues/766) Adds argument `-IntervalInSeconds` for `Enable-IcingaServiceRecovery` to allow setting a custom time interval for the service to restart, while setting the default to 120 seconds (2 minutes)
2121
* [#772](https://github.com/Icinga/icinga-powershell-framework/pull/772) Adds new Metric over Time handling
22+
* [#776](https://github.com/Icinga/icinga-powershell-framework/pull/776) Improves JEA-Sessions by allowing the daemon to update the IfW process priority, as with v1.13.0 we want to ensure that we always run as "Below Normal"
2223

2324
## 1.13.0 Beta-2 (2024-09-19)
2425

lib/daemon/Start-IcingaPowerShellDaemon.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ function Start-IcingaForWindowsDaemon()
5252

5353
Write-IcingaFileSecure -File ($args[0]) -Value $PID;
5454

55+
# Make sure a new JEA session is always updated with the correct process priority
56+
Start-IcingaWindowsScheduledTaskProcessPriority;
57+
5558
$Global:Icinga.Protected.JEAContext = $TRUE;
5659
$Global:Icinga.Protected.RunAsDaemon = $TRUE;
5760
# Todo: Add config for active background tasks. Set it to 20 for the moment

0 commit comments

Comments
 (0)