Santiago Zuluaga
02/20/2024, 8:54 PMon_node_error
, in the hook I simply do this:
class RetryExecution():
@hook_impl
def on_node_error(self, node: Node, error, catalog, inputs):
print(f"The exception was:{error}")
print("Retrying execution...")
if error:
with KedroSession.create() as session:
session.run()
But this create a second session, and doesn´t retries the first one. Someone knows if there´s a way to do this better?
Also, is there a way to retry the execution but from node where it failed.
Thanks!Juan Luis
02/21/2024, 7:33 AMon_node_error
hook