Hi, I have configured slack to my prefect flow tha...
# prefect-getting-started
n
Hi, I have configured slack to my prefect flow that whenever task fail it will send a notification. But the link (can be seen in Details) I am getting in the notification is giving 404 Flow failed... The flow test-Inferencing fails. Summary: Failed('1/11 states failed.')). Details: http://172.16.251.7:4200/app/flow-runs/flow-run/a0ae4555-cdea-4323-ada1-f7aa2c25f09e Can anyone tell me what i am doing wrong
c
HI Nimesh, your IP address indicates this is orion and not cloud. It’s hard to tell from this alone what’s going on. Can you provide some more details, the flow failing, how your notification is configured, and the address that is returning a 404
n
Hi Christopher, this is how i have implemented slack notification in my code
Copy code
from 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():