Nimesh Kumar
01/13/2023, 12:05 PMChristopher Boyd
01/13/2023, 2:32 PMNimesh Kumar
01/15/2023, 5:59 AMfrom prefect.blocks.notifications import SlackWebhook
from prefect_alert import alert_on_failure
slack_block = SlackWebhook(url="<https://mywebhookurl>")
alert_id = str(uuid.uuid4())
slack_block.save(name=alert_id)
@alert_on_failure(block_type=SlackWebhook, block_name=alert_id)
@flow(name="Inferencing")
def start_inferencing():