-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pubsub: How to extend deadline past 600s? #608
Comments
@purohit The short version is The slightly longer version:
Note that For your use case, I think it's sufficient to set |
@pongad Thanks for the thorough response. I'm really glad |
Does the python library also have the MaxExtension feature? |
@TrangPham I don't think this is a good place to ask for details on Python lib. Can I point you to https://github.com/googleapis/google-cloud-python ? I'm 99.9% sure it does, but possibly in a different name. |
Is it possible to modify a message's ack deadline multiple times to get a total deadline of > 600s? That is, if I have jobs which are queue-based, prone to failure, and yet take on average 2000s, I'd like to call
modifyAckDeadline
at appropriate intervals to extend the deadline lest another consumer receive the message during processing.I see there's an API endpoint for it: https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/modifyAckDeadline, but I'm not sure how to use this library to do it (or if multiple calls to modifyAckDeadline are even allowed; don't see anything in the docs about that). Right now I've set the
ReceiveSettings.MaxExtension = 10 * time.Minute
, but that only buys me the ten minutes up-front.Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: