[英]How to modify ack deadline for a push subscription message on GCP Pub/Sub?
I am trying to figure out how to modify the ack deadline for a push subscription message.我试图弄清楚如何修改推送订阅消息的确认截止日期。 The problem is, I don't have the ack Id which is a required argument for the
modify_ack_deadline
function.问题是,我没有 ack Id,它是
modify_ack_deadline
function 的必需参数。 The message which is being pushed to the endpoint doesn't seem to have the acknowledgement id in it.被推送到端点的消息似乎没有确认 ID。 So my question is, how do I get a hold of this acknowledgement id if it's even possible?
所以我的问题是,如果可能的话,我如何获得这个确认ID?
Ref: https://googleapis.dev/python/pubsub/latest/pubsub/subscriber/api/client.html#google.cloud.pubsub_v1.subscriber.client.Client.modify_ack_deadline参考: https://googleapis.dev/python/pubsub/latest/pubsub/subscriber/api/client.html#google.cloud.pubsub_v1.subscriber.client.Client.modify_ack_deadline
There is no way to modify the ack deadline when using a push subscription.使用推送订阅时,无法修改确认截止日期。 The message must be acknowledged within the subscription's configured ack deadline.
消息必须在订阅配置的确认期限内得到确认。 If extending the ack deadline is needed, the a pull subscription must be used.
如果需要延长确认期限,则必须使用拉订阅。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.