Open robfreedy opened 6 months ago
@robfreedy at the moment only known system block types (like Webhook
) can be used in Automation actions.
We don't have any way to instantiate CustomWebhookNotificationBlock
server side, only metadata about the block definition.
Happy to chat through a feature request if you think there's value.
Seems like at minimum we could explain the above in our Automations action error message.
Gotcha, that makes sense. I could see this experience being confusing based on what is exposed in the Cloud UI just because there could be any number of custom blocks with the "notify" tag on them when setting the block for the "Send a Notifaction" action that would not be valid since there is no way to instantiate the CustomWebhookNotificationBlock
or any custom block type.
I would maybe propose we either:
cc: @masonmenges
First check
Bug summary
Send a Notification Automation Action with CustomWebhook block fails after being triggered because the Block type could not be found. The CustomWebhook block does not exist out of the box in Prefect Cloud, so the block had to be registered to the workspace.
Reproduction
Creating the block:
Command to register the block
Error
This was taken from the event payload of the Automation action Failed event (see complete payload in screenshot below).
Versions
Additional context
Automation Action Failed event payload: