Mercurial > hg > orthanc
diff Core/JobsEngine/JobsRegistry.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 | 140a539b4eba |
children | 00327e989458 |
line wrap: on
line diff
--- a/Core/JobsEngine/JobsRegistry.cpp Tue May 22 13:11:47 2018 +0200 +++ b/Core/JobsEngine/JobsRegistry.cpp Tue May 22 14:08:57 2018 +0200 @@ -446,12 +446,14 @@ } - void JobsRegistry::SetMaxCompletedJobs(size_t i) + void JobsRegistry::SetMaxCompletedJobs(size_t n) { boost::mutex::scoped_lock lock(mutex_); CheckInvariants(); - maxCompletedJobs_ = i; + LOG(INFO) << "The size of the history of the jobs engine is set to: " << n << " job(s)"; + + maxCompletedJobs_ = n; ForgetOldCompletedJobs(); CheckInvariants();