emre

    emre

    1 year ago
    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.
    Kevin Kho

    Kevin Kho

    1 year ago
    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.
    emre

    emre

    1 year ago
    🤦 How come I never think of looking at the task library. Thanks a ton!