Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/LuaJobManager.cpp @ 2950:dc18d5804746
support of JobsHistorySize set to zero
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2018 17:19:57 +0100 |
parents | 4767d36679ed |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
2949:e6204cd21443 | 2950:dc18d5804746 |
---|---|
141 if (isNewJob_) | 141 if (isNewJob_) |
142 { | 142 { |
143 // Need to create a new job, as the previous one is either | 143 // Need to create a new job, as the previous one is either |
144 // finished, or is getting too long | 144 // finished, or is getting too long |
145 that_.currentJob_ = new SequenceOfOperationsJob; | 145 that_.currentJob_ = new SequenceOfOperationsJob; |
146 that_.currentJob_->Register(that_); | |
146 that_.currentJob_->SetDescription("Lua"); | 147 that_.currentJob_->SetDescription("Lua"); |
147 | 148 |
148 { | 149 { |
149 jobLock_.reset(new SequenceOfOperationsJob::Lock(*that_.currentJob_)); | 150 jobLock_.reset(new SequenceOfOperationsJob::Lock(*that_.currentJob_)); |
150 jobLock_->SetTrailingOperationTimeout(that_.trailingTimeout_); | 151 jobLock_->SetTrailingOperationTimeout(that_.trailingTimeout_); |