Hey Team a very naive question. How can we know if a pipeline ran successfully. So basically, I would like to record the status of each pipeline run as success or Failure. I wanted to know the best way to have it in a kedro project.
m
Merel
09/18/2024, 11:41 AM
It's successful if there's no errors and you'll get the following logging message: " Pipeline execution completed successfully."
v
Vishal Pandey
09/18/2024, 11:47 AM
Yeaah i can see this message on my console, but if the pipeline is running in a production environment , how do i declare the run was successful and save the Success status in database. Do you suggest to look for this specific message in the log file and then take the action.
n
Nok Lam Chan
09/18/2024, 12:55 PM
@Vishal Pandey May I introduce you the Hook feature? This is something very useful when you want to extend on Kedro.
Nok Lam Chan
09/18/2024, 12:55 PM
For example, there is a hook called ``after_pipeline_run` , which is probably exactly what you need :)