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

Slackbot

08/26/2022, 12:05 PM
This message was deleted.
t

Tomasz Nowak

08/26/2022, 12:09 PM
So something like
Copy code
a_job = a_graph.to_job(
    resource_defs={"slack": slack_resource},
    hooks={slack_message_on_failure, slack_message_on_success},
    config={
        "resources": {"slack": {"config": {"token": os.getenv("DAGSTER_SLACK_BOT_TOKEN")}}}
    },
)

@repository
def a_repository():
    return [a_job]
l

Lucas Bolte

08/26/2022, 12:24 PM
adding it to a repository fixed the issue
thank you
@Tomasz Nowak
❤️ 1
3 Views