comparison Core/JobsEngine/SetOfInstancesJob.cpp @ 3658:2d90dd30858c storage-commitment

providing job ID to the IJob::Step() methods
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Feb 2020 16:44:26 +0100
parents 94f4a18a79cc
children 9201a7858cce
comparison
equal deleted inserted replaced
3657:115f82775c46 3658:2d90dd30858c
58 const std::string& GetInstance() const 58 const std::string& GetInstance() const
59 { 59 {
60 return instance_; 60 return instance_;
61 } 61 }
62 62
63 virtual bool Execute() 63 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE
64 { 64 {
65 if (!that_.HandleInstance(instance_)) 65 if (!that_.HandleInstance(instance_))
66 { 66 {
67 that_.failedInstances_.insert(instance_); 67 that_.failedInstances_.insert(instance_);
68 return false; 68 return false;
89 TrailingStepCommand(SetOfInstancesJob& that) : 89 TrailingStepCommand(SetOfInstancesJob& that) :
90 that_(that) 90 that_(that)
91 { 91 {
92 } 92 }
93 93
94 virtual bool Execute() 94 virtual bool Execute(const std::string& jobId) ORTHANC_OVERRIDE
95 { 95 {
96 return that_.HandleTrailingStep(); 96 return that_.HandleTrailingStep();
97 } 97 }
98 98
99 virtual void Serialize(Json::Value& target) const 99 virtual void Serialize(Json::Value& target) const ORTHANC_OVERRIDE
100 { 100 {
101 target = Json::nullValue; 101 target = Json::nullValue;
102 } 102 }
103 }; 103 };
104 104