# HG changeset patch # User Sebastien Jodogne # Date 1541753181 -3600 # Node ID a80ba85d89e6cb6767b1c8716eaa9b1f485953ce # Parent 22524fd062251a7bf5d4efc3d164b23d2ec35f98 Orthanc starts even if jobs from a previous execution cannot be unserialized diff -r 22524fd06225 -r a80ba85d89e6 NEWS --- a/NEWS Fri Nov 09 09:06:46 2018 +0100 +++ b/NEWS Fri Nov 09 09:46:21 2018 +0100 @@ -30,6 +30,7 @@ * Fix: Closing DICOM associations after running query/retrieve from REST API * Fix: Allow creation of MONOCHROME1 grayscale images in tools/create-dicom * Remove invalid characters from badly-encoded UTF-8 strings (impacts PostgreSQL) +* Orthanc starts even if jobs from a previous execution cannot be unserialized Version 1.4.2 (2018-09-20) diff -r 22524fd06225 -r a80ba85d89e6 OrthancServer/ServerContext.cpp --- a/OrthancServer/ServerContext.cpp Fri Nov 09 09:06:46 2018 +0100 +++ b/OrthancServer/ServerContext.cpp Fri Nov 09 09:46:21 2018 +0100 @@ -170,8 +170,7 @@ } catch (OrthancException& e) { - LOG(ERROR) << "Cannot unserialize the jobs engine: " << e.What(); - throw; + LOG(WARNING) << "Cannot unserialize the jobs engine, starting anyway: " << e.What(); } } else @@ -181,11 +180,9 @@ } else { - LOG(WARNING) << "Not reloading the jobs from the last execution of Orthanc"; + LOG(INFO) << "Not reloading the jobs from the last execution of Orthanc"; } - //jobsEngine_.GetRegistry().SetMaxCompleted // TODO - jobsEngine_.GetRegistry().SetObserver(*this); jobsEngine_.Start(); isJobsEngineUnserialized_ = true;