We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be73f63 commit 8fc1e9bCopy full SHA for 8fc1e9b
rdagent/core/experiment.py
@@ -439,7 +439,12 @@ def recover_ws_ckp(self) -> None:
439
self.experiment_workspace.recover_ws_ckp()
440
for ws in self.sub_workspace_list:
441
if ws is not None:
442
- ws.recover_ws_ckp()
+ try:
443
+ ws.recover_ws_ckp()
444
+ except RuntimeError:
445
+ # the FBWorkspace is shared between experiment_workspace and sub_workspace_list,
446
+ # so recover_ws_ckp will raise RuntimeError if a workspace is recovered twice.
447
+ print("recover_ws_ckp failed due to one workspace is recovered twice.")
448
449
450
ASpecificExp = TypeVar("ASpecificExp", bound=Experiment)
0 commit comments