diff Core/JobsEngine/SetOfCommandsJob.h @ 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
line wrap: on
line diff
--- a/Core/JobsEngine/SetOfCommandsJob.h	Mon Feb 10 14:53:36 2020 +0100
+++ b/Core/JobsEngine/SetOfCommandsJob.h	Mon Feb 10 16:44:26 2020 +0100
@@ -49,7 +49,7 @@
       {
       }
 
-      virtual bool Execute() = 0;
+      virtual bool Execute(const std::string& jobId) = 0;
 
       virtual void Serialize(Json::Value& target) const = 0;
     };
@@ -126,7 +126,7 @@
 
     const ICommand& GetCommand(size_t index) const;
       
-    virtual JobStepResult Step();
+    virtual JobStepResult Step(const std::string& jobId) ORTHANC_OVERRIDE;
     
     virtual void GetPublicContent(Json::Value& value);