alerter
component in ZenML allows teams to easily interact with their pipelines via a chat service.zenml.alerter.alerter_step
:alerter_post_step()
takes a string, posts it to the desired chat service, and returns True
if the operation succeeded, else False
.alerter_ask_step()
: does the same as alerter_post_step()
, but after sending the message, it waits until someone approves or rejects the operation from within the chat service (e.g., by sending "approve" / "reject" to the bot as response). alerter_ask_step()
then only returns True
if the operation succeeded and was approved, else False
.alerter
component in your ZenML stack. Right now, the SlackAlerter is the only alerter you can use out-of-the-box, but it is straightforward to extend ZenML and build an alerter for other chat services, as shown here.zenml alerter register <MY_ALERTER>
and then add it to your stack with zenml stack register ... -al <MY_ALERTER>
.alerter_ask_step()
into your pipeline could look like this:slack_alert
example here, where we first send the test accuracy of a model to Slack and then wait with model deployment until a user approves it in Slack.