diff OrthancFramework/Sources/JobsEngine/IJob.h @ 5364:b5f2122a1334

Added a route to delete completed jobs from history: DELETE /jobs/{id}
author Alain Mazy <am@osimis.io>
date Thu, 20 Jul 2023 10:51:34 +0200
parents b5c502bcaf99
children 48b8dae6dc77
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/IJob.h	Thu Jul 13 19:33:10 2023 +0200
+++ b/OrthancFramework/Sources/JobsEngine/IJob.h	Thu Jul 20 10:51:34 2023 +0200
@@ -66,5 +66,9 @@
     // This function can only be called if the job has reached its
     // "success" state
     virtual bool DeleteOutput(const std::string& key) = 0;
+
+    // This function can only be called if the job has reached its
+    // "success" state
+    virtual void DeleteAllOutputs() {}
   };
 }