# HG changeset patch # User Alain Mazy # Date 1674815156 -3600 # Node ID 4a0dfa23d28c06990ad1efa5ff9333bb75d3ac76 # Parent df040c83796cbb2eaed7fd1c9225d5967f0955ae doc diff -r df040c83796c -r 4a0dfa23d28c OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp --- a/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp Fri Jan 27 11:23:35 2023 +0100 +++ b/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp Fri Jan 27 11:25:56 2023 +0100 @@ -349,7 +349,9 @@ if (started_) { - // TODO: cleanup the instances that have been generated during the previous run + // We actually can not clean the instances that would have been generated during a previous run + // because the generated instances may or may not have the same orthanc ids as the source + // it is too dangerous to guess if they should be deleted or not currentStep_ = ThreadedJobStep_NotStarted; stopRequested_ = false; processedInstances_.clear();