$ pip install --upgrade kedro-local-notify
Nothing! Kedro will automagically pick up the hook and ping you a notification after the pipeline finished running succesfully or fails.
Ever kicked off a long-running pipeline and come back to check in an hour later, only to find that it failed 2 minutes in?
Or come back to see your pipeline finished running an hour ago and you have nothing to justify your reddit browsing anymore?
kedro-local-notify
will ping you a notification indicating that your pipeline ran sucessfully or failed.
By default, notifications will only trigger if the pipeline has been running for more than 1 minute. You can change this thresholf for notifying you by setting the KEDRO_LOCAL_NOTIFY_THRESHOLD
environment variable to be the number of seconds of pipeline run time before a notification is trigerred. The default is:
$ export KEDRO_LOCAL_NOTIFY_THRESHOLD=60
note that this environment variable needs to be set in the same shell that you're trigerring the Kedro pipeline run in.
You probably shouldn't add this to your requirements. It's a silly little tool meant to be used for some quality of life improvements on your local machine.
This is currently limited to Mac OS X 10.10 or higher. Windows support is in the works!