Hey everyone! I'm trying to have a task that utili...
# ask-community
e
Hey everyone! I'm trying to have a task that utilizes the
slack_notifier
. I want some custom text in this this task to show up nicely formatted in slack. So far, I tried to return my custom text, and
raise SUCCESS(message='my_text')
. Both aren't what I hoped for. Any ideas?
For the builtin slack notifications that show up as nice strings, and not code blocks in slack,
TaskRunner
creates a
Success
object with a message parameter. I don't think I can, or should modify TaskRunner for this purpose.
k
Hey @emre, the slack_notifier doesn’t take in a message. You’ll probably want to use the SlackTask instead with a state handler so that you can provide a custom message.
👍 1
e
🤦 How come I never think of looking at the task library. Thanks a ton!
👍 1