Skip to content

Conversation

@Prab-27
Copy link
Contributor

@Prab-27 Prab-27 commented Dec 18, 2024

Closes : #44876

Currently, the SqsPublishOperator in Airflow does not support the MessageDeduplicationId parameter for deduplication of messages sent to AWS SQS FIFO queues. Users are forced to rely solely on ContentBasedDeduplication, which may not be suitable for all scenarios.

This PR aims to add support for MessageDeduplicationId and test for deduplication to provide more flexibility and control over message deduplication.

(https://boto3.amazonaws.com/v1/documentation/api/1.35.6/reference/services/sqs/client/send_message.html))


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Dec 18, 2024
Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

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

Needs also a test for the success scenario.
You can add the needed changes to test_execute_success or write a separated test if needed

@Prab-27
Copy link
Contributor Author

Prab-27 commented Dec 22, 2024

Needs also a test for the success scenario. You can add the needed changes to test_execute_success or write a separated test if needed

Done!

@vincbeck
Copy link
Contributor

vincbeck commented Jan 6, 2025

@eladkal ?

@eladkal eladkal force-pushed the add-MessageDeduplicationId-support-to-SqsPublishOperator branch from 3b5918b to 860b6ea Compare January 7, 2025 09:45
@eladkal eladkal merged commit 0cc2d72 into apache:main Jan 7, 2025
60 checks passed
HariGS-DB pushed a commit to HariGS-DB/airflow that referenced this pull request Jan 16, 2025
…45051)

* add MessageDeduplicationId support to AWS SqsPublishOperator

* modified test

---------

Co-authored-by: pratiksha rajendrabhai badheka <pratiksha@DESKTOP-T5HUA05>
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
…45051)

* add MessageDeduplicationId support to AWS SqsPublishOperator

* modified test

---------

Co-authored-by: pratiksha rajendrabhai badheka <pratiksha@DESKTOP-T5HUA05>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MessageDeduplicationId support to SqsPublishOperator

3 participants