diff OrthancServer/main.cpp @ 2620:1232922c8793 jobs

speeding up shutdown if Lua script is in trailing phase
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 May 2018 14:08:57 +0200
parents 912a767911b0
children 33c0b4da8cb2
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue May 22 13:11:47 2018 +0200
+++ b/OrthancServer/main.cpp	Tue May 22 14:08:57 2018 +0200
@@ -997,6 +997,9 @@
   LOG(INFO) << "Initializing Lua for the event handler";
   context.GetLuaScripting().LoadGlobalConfiguration();
 
+  context.GetJobsEngine().GetRegistry().SetMaxCompletedJobs
+    (Configuration::GetGlobalUnsignedIntegerParameter("JobsHistorySize", 10));
+
 #if ORTHANC_ENABLE_PLUGINS == 1
   if (plugins)
   {