alertercomponent in ZenML allows teams to easily interact with their pipelines via a chat service.
alerter_post_step()takes a string, posts it to the desired chat service, and returns
Trueif the operation succeeded, else
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
Trueif the operation succeeded and was approved, else
alertercomponent 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_alertexample 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.