Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp @ 5146:4a0dfa23d28c
doc
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 27 Jan 2023 11:25:56 +0100 |
parents | df040c83796c |
children | 6ff13c95f62f |
comparison
equal
deleted
inserted
replaced
5145:df040c83796c | 5146:4a0dfa23d28c |
---|---|
347 { | 347 { |
348 boost::recursive_mutex::scoped_lock lock(mutex_); | 348 boost::recursive_mutex::scoped_lock lock(mutex_); |
349 | 349 |
350 if (started_) | 350 if (started_) |
351 { | 351 { |
352 // TODO: cleanup the instances that have been generated during the previous run | 352 // We actually can not clean the instances that would have been generated during a previous run |
353 // because the generated instances may or may not have the same orthanc ids as the source | |
354 // it is too dangerous to guess if they should be deleted or not | |
353 currentStep_ = ThreadedJobStep_NotStarted; | 355 currentStep_ = ThreadedJobStep_NotStarted; |
354 stopRequested_ = false; | 356 stopRequested_ = false; |
355 processedInstances_.clear(); | 357 processedInstances_.clear(); |
356 failedInstances_.clear(); | 358 failedInstances_.clear(); |
357 instancesToProcessQueue_.Clear(); | 359 instancesToProcessQueue_.Clear(); |