comparison 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
comparison
equal deleted inserted replaced
2619:4ecb79c6e81c 2620:1232922c8793
995 } 995 }
996 996
997 LOG(INFO) << "Initializing Lua for the event handler"; 997 LOG(INFO) << "Initializing Lua for the event handler";
998 context.GetLuaScripting().LoadGlobalConfiguration(); 998 context.GetLuaScripting().LoadGlobalConfiguration();
999 999
1000 context.GetJobsEngine().GetRegistry().SetMaxCompletedJobs
1001 (Configuration::GetGlobalUnsignedIntegerParameter("JobsHistorySize", 10));
1002
1000 #if ORTHANC_ENABLE_PLUGINS == 1 1003 #if ORTHANC_ENABLE_PLUGINS == 1
1001 if (plugins) 1004 if (plugins)
1002 { 1005 {
1003 plugins->SetServerContext(context); 1006 plugins->SetServerContext(context);
1004 context.SetPlugins(*plugins); 1007 context.SetPlugins(*plugins);