aboutsummaryrefslogtreecommitdiff
path: root/src/zencompute/runners/windowsrunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencompute/runners/windowsrunner.cpp')
-rw-r--r--src/zencompute/runners/windowsrunner.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zencompute/runners/windowsrunner.cpp b/src/zencompute/runners/windowsrunner.cpp
index 92ee65c2d..e643c9ce8 100644
--- a/src/zencompute/runners/windowsrunner.cpp
+++ b/src/zencompute/runners/windowsrunner.cpp
@@ -48,7 +48,9 @@ WindowsProcessRunner::WindowsProcessRunner(ChunkResolver& Resolver,
if (m_JobObject)
{
JOBOBJECT_EXTENDED_LIMIT_INFORMATION ExtLimits{};
- ExtLimits.BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE | JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION;
+ ExtLimits.BasicLimitInformation.LimitFlags =
+ JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE | JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION | JOB_OBJECT_LIMIT_PRIORITY_CLASS;
+ ExtLimits.BasicLimitInformation.PriorityClass = BELOW_NORMAL_PRIORITY_CLASS;
SetInformationJobObject(m_JobObject, JobObjectExtendedLimitInformation, &ExtLimits, sizeof(ExtLimits));
JOBOBJECT_BASIC_UI_RESTRICTIONS UiRestrictions{};