add load function to auto search
@@ -49,6 +49,17 @@ class AutoSearchJob(SearchJob):
filename,
)
+ def load(self, checkpoint):
+ self.resumed_from_job_id = checkpoint.get("job_id")
+ self.trace(
+ event="job_resumed", checkpoint_file=checkpoint["file"]
+ )
+ self.config.log(
+ "Resumed from {} of job {}".format(
+ checkpoint["file"], self.resumed_from_job_id
+ )
+ )
+
# -- Abstract methods --------------------------------------------------------------
def init_search(self):
