https://prefect.io logo
m

Malavika S Menon

07/18/2023, 6:40 AM
For prefect slack notifications, do we need to setup a block? Or would configuring it through the notification panel be sufficient?
For additional context, just notification without a block was working fine for prefect version 2.3.1. But after upgrading to prefect 2.10.x, the notifications are failing with the error
KeyError: "No class found for dispatch key 'Slack-Webhook' in registry for type 'Block'."
b

Bianca Hoch

07/18/2023, 4:16 PM
Hello Malavika, yes, I believe the new process is as follows: 1. create a slack webhook block 2. create an automation to fire off a notification 3. pass in the block to the automation
Just to confirm, are you using Cloud?
m

Malavika S Menon

07/19/2023, 5:38 AM
No I am not using cloud, its a self hosted server