Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp @ 5635:0e16e677fe64
fixed broken /instances/../tags after reconstructing studies when IngestTranscoding has changed
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 21 May 2024 17:09:57 +0200 |
parents | 3a6d6d35193c |
children | f7adfb22e20e |
comparison
equal
deleted
inserted
replaced
5633:5db4ed395d81 | 5635:0e16e677fe64 |
---|---|
563 { | 563 { |
564 if (change["ChangeType"] == "NewStudy") // some StableStudy might be missing if orthanc was shutdown during a StableAge -> consider only the NewStudy events that can not be missed | 564 if (change["ChangeType"] == "NewStudy") // some StableStudy might be missing if orthanc was shutdown during a StableAge -> consider only the NewStudy events that can not be missed |
565 { | 565 { |
566 Json::Value result; | 566 Json::Value result; |
567 | 567 |
568 if (needsReconstruct) | 568 if (needsReconstruct || needsReingest) |
569 { | 569 { |
570 Json::Value request; | 570 Json::Value request; |
571 if (needsReingest) | 571 if (needsReingest) |
572 { | 572 { |
573 request["ReconstructFiles"] = true; | 573 request["ReconstructFiles"] = true; |
655 CheckNeedsProcessing(needsReconstruct2, needsReingest2, needsDicomWebCaching2, currentDbConfiguration, pluginStatus_.currentlyProcessingConfiguration); | 655 CheckNeedsProcessing(needsReconstruct2, needsReingest2, needsDicomWebCaching2, currentDbConfiguration, pluginStatus_.currentlyProcessingConfiguration); |
656 needsFullProcessing = needsReconstruct2 || needsReingest2 || needsDicomWebCaching2; // if the configuration has changed compared to the config being processed, we need a full processing again | 656 needsFullProcessing = needsReconstruct2 || needsReingest2 || needsDicomWebCaching2; // if the configuration has changed compared to the config being processed, we need a full processing again |
657 } | 657 } |
658 } | 658 } |
659 | 659 |
660 if (!needsProcessing) | 660 if (!needsProcessing && !force_) |
661 { | 661 { |
662 ORTHANC_PLUGINS_LOG_WARNING("Housekeeper: everything has been processed already !"); | 662 ORTHANC_PLUGINS_LOG_WARNING("Housekeeper: everything has been processed already !"); |
663 return; | 663 return; |
664 } | 664 } |
665 | 665 |