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?
emre
06/22/2021, 12:44 PM
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
Kevin Kho
06/22/2021, 1:39 PM
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
emre
06/22/2021, 3:02 PM
🤦
How come I never think of looking at the task library. Thanks a ton!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.