Skip to content

Add return value to Slack operators for XCom - #63397

Merged
vincbeck merged 7 commits into
apache:mainfrom
yuseok89:feat/slack-operator-xcom-return
Mar 12, 2026
Merged

Add return value to Slack operators for XCom#63397
vincbeck merged 7 commits into
apache:mainfrom
yuseok89:feat/slack-operator-xcom-return

Conversation

@yuseok89

@yuseok89 yuseok89 commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

There are use cases where the message ID(ts) is needed after posting. This change makes the Slack operator return the API response so downstream tasks can access it via XCom.
Users who do not want the XCom response can set the BaseOperator parameter do_xcom_push to False.

Screenshot

SlackAPIPostOperator

image

SlackAPIFileOperator

image
Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    • Cursor

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@yuseok89
yuseok89 marked this pull request as ready for review March 12, 2026 01:16
@vincbeck
vincbeck merged commit f09fbf3 into apache:main Mar 12, 2026
88 checks passed
Pyasma pushed a commit to Pyasma/airflow that referenced this pull request Mar 13, 2026
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