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

Move send_file method into SlackHook #26118

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

Taragolis
Copy link
Contributor

@Taragolis Taragolis commented Sep 1, 2022

Move send_file into SlackHook which make this part reusable in other Operators and not only in airflow.providers.slack.operators.slack.SlackAPIFileOperator

Comment on lines -73 to -76
"""
The SlackAPIOperator calls will not fail even if the call is not unsuccessful.
It should not prevent a DAG from completing in success
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually slack_sdk v3 always validate response and raise an error

Comment on lines -157 to +161
channel="#general",
channels="#general,#random",
Copy link
Contributor Author

@Taragolis Taragolis Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slack API files.upload method supports upload file to multiple channels

@Taragolis Taragolis force-pushed the slack-send-file-to-hook branch from 104a292 to 3a3a4fe Compare September 1, 2022 21:48
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah. This is how it should be.

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

Successfully merging this pull request may close these issues.

2 participants