Enable resuming auto search jobs only from search job level checkpoint and config.
@@ -126,6 +126,18 @@ class AutoSearchJob(SearchJob):
"Resumed trial {} with parameters: {}".format(trial_no, parameters)
)
+ if self.results[trial_id] is not None:
+ self.config.log(
+ "Registering trial {} result: {}".format(
+ trial_id, self.results[trial_id]
+ )
+ )
+ self.register_trial_result(
+ self.trial_ids[trial_id],
+ self.parameters[trial_id],
+ self.results[trial_id],
+ )
+ else:
# create job for trial
if trial_id is not None:
folder = str("{:05d}".format(trial_no))
