Reestablished working state

This commit is contained in:
Lyncoln
2026-10-10 19:18:06 -04:00
parent 8d91b8d716
commit feb8af703a
53 changed files with 170 additions and 84 deletions
+13 -4
View File
@@ -7,13 +7,22 @@ def manageFailure(error, action, outputs):
errors = action.recoverPolicy
error_type = type(error)
print(f"{type(error).__name__} detected during {action.name}. Applying recovery policy.")
#print(f"{type(error).__name__} detected during {action.name}. Applying recovery policy.")
if error_type in errors:
repairs = errors[error_type]
for repair in repairs:
outputs, response = buildAction(repair, outputs)
if repair == False:
return False
return outputs
elif repair is None:
return
else:
print(f"{type(error).__name__} detected during {action.name}. Applying recovery policy.")
outputs, response = buildAction(repair, outputs)
return outputs
print(f"{error}")