Not sure, why Google has this 10 mins maximum acknowledgment deadline. As I am using PubSub Push subscription to Trigger Google Cloud Run function, this 10-minute restriction is making the "Push subscription" based trigger useless, cause I cannot leverage the full 60-minute execution time of the functions. I have to return a response within 10 minutes. Is it possible to increase that 10 mins acknowledgment deadline to up to 60 mins?
Note: I know PubSub has this concept of modifying acknowledgment deadline, but that's only for Pull Subcription, not for Push subscription.
Hi @samiul-azam,
Welcome to Google Cloud Community!
Currently, you cannot increase the 10-minute maximum acknowledgement deadline for Google Pub/Sub push subscriptions.
Another workaround to handle longer processing times with services like Cloud Run, use asynchronous processing with Cloud Tasks or another Pub/Sub topic to acknowledge the message immediately and process it separately.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
For this one "Another workaround to handle longer processing times with services like Cloud Run", you mean pull subscription, right? I mean use the ModifyAckDeadline in the Subscriber client to extend the deadline every 10 minutes, right? I don't see any way to use the ModifyAckDeadline in the push subscription.
Also, can I get some elaboration on this "another Pub/Sub topic to acknowledge the message immediately"? It's not clear to me.