https://dagster.io/ logo
#ask-community
Title
# ask-community
j

Johannes Müller

08/22/2023, 9:25 AM
Is it possible to send a newline via the Slack integration? I tried "\n" but it is sent literally :D
Copy code
@failure_hook(required_resource_keys={"slack"})
def slack_message_on_failure(context: HookContext):
    message = (
        f"Application database sync to our data warehouse failed: Operation {context.op.name} failed.\ņ"
        f"Please fix and rerun the associated operation."
    )
    context.resources.slack.chat_postMessage(channel="#test42", text=message)
dagster bot responded by community 1
a

Antoine Adam

08/22/2023, 10:07 AM
Hey, you are using
and not
\n
in your code (notice the “’” under the “n”).
j

Johannes Müller

08/22/2023, 10:54 AM
What the heck 😄
Thanks @Antoine Adam!