Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tutorial configuring slack notifications on run failure #17589

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Ben-Epstein
Copy link
Contributor

As per slack conversation with @cicdw

walkthrough configuring slack notifications in code for prefect run failures

Checklist

- [ ] This pull request references any related issue by including "closes <link to issue>"
- If no issue exists and your change is not a small fix, please create an issue first.
- [ ] If this pull request adds new functionality, it includes unit tests that cover the changes
- [ ] If this pull request removes docs files, it includes redirect settings in mint.json.
- [ ] If this pull request adds functions or classes, it includes helpful docstrings.

@Ben-Epstein
Copy link
Contributor Author

not totally sure how to handle the linting error

[gw0] linux -- Python 3.9.21 /home/runner/work/prefect/prefect/.venv/bin/python3
Error in code block:
     ```
93   from prefect import flow
94   from notify import notify_slack
95   
96   
97   @flow(on_failure=[notify_slack], on_crashed=[notify_slack], on_cancellation=[notify_slack])
98   async def main():
99       ...
     ```
Traceback (most recent call last):
  File "/home/runner/work/prefect/prefect/docs/v3/tutorials/slack.mdx", line 94, in <module>
    from notify import notify_slack
ModuleNotFoundError: No module named 'notify'

since this is a documentation example. We could add a type: ignore or noqa but that seems weird in a documentation guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant