Mercurial > hg > orthanc
diff OrthancServer/ServerJobs/LuaJobManager.cpp @ 2609:f7a84b551ee4 jobs
switch Lua to new jobs engine
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 19 May 2018 16:29:00 +0200 |
parents | 25225f0b4f33 |
children | 2f3007bf0708 |
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/LuaJobManager.cpp Sat May 19 15:50:09 2018 +0200 +++ b/OrthancServer/ServerJobs/LuaJobManager.cpp Sat May 19 16:29:00 2018 +0200 @@ -62,7 +62,8 @@ LuaJobManager::LuaJobManager() : currentJob_(NULL), maxOperations_(1000), - priority_(0) + priority_(0), + trailingTimeout_(5000) { } @@ -118,7 +119,7 @@ { // Need to create a new job, as the previous one is either // finished, or is getting too long - that_.currentJob_ = new SequenceOfOperationsJob; + that_.currentJob_ = new SequenceOfOperationsJob("Lua"); jobLock_.reset(new SequenceOfOperationsJob::Lock(*that_.currentJob_)); jobLock_->SetTrailingOperationTimeout(that_.trailingTimeout_); }