comparison Core/JobsEngine/JobsRegistry.cpp @ 2630:00327e989458 jobs

creating archives/medias is now a job
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 May 2018 16:09:59 +0200
parents 1232922c8793
children e1893d31652a
comparison
equal deleted inserted replaced
2629:db895b36f4c5 2630:00327e989458
92 if (job == NULL) 92 if (job == NULL)
93 { 93 {
94 throw OrthancException(ErrorCode_NullPointer); 94 throw OrthancException(ErrorCode_NullPointer);
95 } 95 }
96 96
97 job->Start();
98
97 lastStatus_ = JobStatus(ErrorCode_Success, *job); 99 lastStatus_ = JobStatus(ErrorCode_Success, *job);
98 job->Start();
99 } 100 }
100 101
101 const std::string& GetId() const 102 const std::string& GetId() const
102 { 103 {
103 return id_; 104 return id_;