Mercurial > hg > orthanc
changeset 6106:51810284444b default
fix HK: LimitMainDicomTagsReconstructLevel ignored if full processing is required
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Wed, 14 May 2025 10:57:35 +0200 (18 hours ago) |
parents | a0fec542812e |
children | |
files | NEWS OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Mon May 12 13:03:16 2025 +0200 +++ b/NEWS Wed May 14 10:57:35 2025 +0200 @@ -5,7 +5,10 @@ ----------- * In verbose logs, added the elapsed time spent in each HTTP call. - +* Housekeeper plugin: + - If "LimitMainDicomTagsReconstructLevel" was set, files were not transcoded if they had to. + The "LimitMainDicomTagsReconstructLevel" configuration is now ignored when a full processing + is required. Version 1.12.7 (2025-04-07)
--- a/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp Mon May 12 13:03:16 2025 +0200 +++ b/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp Wed May 14 10:57:35 2025 +0200 @@ -651,6 +651,13 @@ needsFullProcessing = needsReconstruct || needsReingest || needsDicomWebCaching; needsProcessing = needsFullProcessing; + if (needsFullProcessing && !limitToChange_.empty()) + { + ORTHANC_PLUGINS_LOG_WARNING("Housekeeper: full processing needed -> ignoring the \"LimitMainDicomTagsReconstructLevel\" configuration"); + limitToChange_.clear(); + limitToUrl_.clear(); + } + // if a processing was in progress, check if the config has changed since if (pluginStatus_.currentlyProcessingConfiguration.IsDefined()) { @@ -679,7 +686,7 @@ } else { - ORTHANC_PLUGINS_LOG_WARNING("Housekeeper: the DB configuration has changed since last run, will reprocess the whole DB !"); + ORTHANC_PLUGINS_LOG_WARNING("Housekeeper: the Orthanc configuration has changed since last run, will reprocess the whole DB !"); } Json::Value changes; @@ -695,7 +702,7 @@ } else { - ORTHANC_PLUGINS_LOG_WARNING("Housekeeper: the DB configuration has not changed since last run, will continue processing changes"); + ORTHANC_PLUGINS_LOG_WARNING("Housekeeper: the Orthanc configuration has not changed since last run, will continue processing changes"); } bool completed = false;