Solve the on_diverged function not executed error.

fix: #8348
This commit is contained in:
karajan1001
2022-09-23 17:20:31 +08:00
committed by Gao
parent c617769a1d
commit 8da04c7c81
+3 -2
View File
@@ -324,11 +324,12 @@ class BaseExecutor(ABC):
logger.debug("Replacing existing experiment '%s'", orig_ref)
return True
if on_diverged:
return on_diverged(orig_ref, has_checkpoint)
self._raise_ref_conflict(
dest_scm, orig_ref, new_rev, has_checkpoint
)
if on_diverged:
on_diverged(orig_ref, has_checkpoint)
logger.debug("Reproduced existing experiment '%s'", orig_ref)
return False