I'm fairly new to Prefect and I'm trying to send reports of the state of the flow to slack.
The below is my code and when I run it from Prefect cloud, I get the message in slack about the status but not able to get the error message in the message section.I need to know the function or where to call for editing the message section. The
contains the error message. Any suggestions will be helpful, thanks.
3 months ago
Hey @Shrikkanth, the
doesn’t allow for customization. For a custom message, you need to use the
. You can make a state handler for the like this . Also, could you move the code to the thread to keep the main channel cleaner?