Roman Shevtsiv
02/16/2024, 10:00 PMIan Whalen
02/16/2024, 10:04 PMIan Whalen
02/16/2024, 10:05 PMon_node_error
to catch a custom DataNotFound
exception?
Just spit balling hahaRoman Shevtsiv
02/16/2024, 10:06 PMif <no new data>:
sys.exit(0)
at the end of Node A.
But Kedro still thinks that the pipeline wasn’t properly terminated.Roman Shevtsiv
02/16/2024, 10:07 PMon_node_error
same problem as with sys.exit(0)
Ian Whalen
02/16/2024, 10:09 PMNone
as input and just do nothing if that's the input
But then you might save over intermediate outputs with None
if B outputs anything
Also not idealNok Lam Chan
02/17/2024, 12:34 AMon_node_error
make a lot of sense, though I checked the current implementation won't work without a custom runner. The hook simply catch the error and allows you to do something (e.g. logging) before raising the errorRoman Shevtsiv
02/17/2024, 3:17 AMsys.exit(0)
I will raise, for example, TerminateExecutionException and my custom runner will handle it properly. Does my understanding makes sense?Nok Lam Chan
02/18/2024, 10:50 PMNok Lam Chan
02/18/2024, 10:51 PMIñigo Hidalgo
02/19/2024, 10:07 AMNone
as input and just do nothing if that's the input" goes in that direction. Sometimes the solution is to rethink how you're structuring a pipeline in order to attain the result you want, rather than trying to modify kedro behavior to work with your current code.