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

Add 'set_ack_deadline' to Delivery, and implement for SQS/GCP #91

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

svix-aaron1011
Copy link
Contributor

This allows changing the 'ack deadline' (e.g. the visibility timeout in SQS) for an existing message, which allows the consumer to spend more time processing the message before calling 'ack()'.

At the moment, this is only implemented for SQS and GCP. To support this, I've added back the QueueError::Unsupported enum variant (which is a breaking change).

@svix-aaron1011 svix-aaron1011 requested a review from a team as a code owner June 25, 2024 21:06
@tasn
Copy link
Member

tasn commented Jun 25, 2024

Can we hide this behind a "beta" feature flag or something?

svix-james
svix-james previously approved these changes Jun 25, 2024
@svix-james
Copy link

This looks fine to me, but let's discuss with @svix-jplatte before cutting a release.

This allows changing the 'ack deadline' (e.g. the visibility
timeout in SQS) for an existing message, which allows the consumer
to spend more time processing the message before calling 'ack()'.

At the moment, this is only implemented for SQS and GCP.
To support this, I've added back the `QueueError::Unsupported`
enum variant (which is a breaking change).

This is gated behind an off-by-default 'beta' feature flag at
the moment
@svix-aaron1011
Copy link
Contributor Author

I added an off-by-default beta feature

@svix-aaron1011 svix-aaron1011 merged commit e30bfee into main Jun 27, 2024
5 checks passed
@svix-aaron1011 svix-aaron1011 deleted the aaron1011/set-ack-deadline branch June 27, 2024 15:33
@svix-jplatte
Copy link
Member

This looks fine to me, but let's discuss with @svix-jplatte before cutting a release.

Looks good to me 👍

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

Successfully merging this pull request may close these issues.

4 participants