The maximum time by which the deadline for each incoming message is extended.
While waiting for an ack or nack, The Cloud Pub/Sub C++ client library will extend the deadline by at most this amount. The default extension time is 10 minutes. An application may wish to reduce this extension time so the Pub/Sub service will resend a message sooner when it does not hear back from a Subscriber. With at-least-once semantics, making the time too short may increase the number of duplicate messages delivered by the service.
The value is clamped between 10 seconds and 10 minutes. Note that this option also affects the effective range for MinDeadlineExtensionOption.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eMaxDeadlineExtensionOption\u003c/code\u003e for the Cloud Pub/Sub C++ client library, which controls the maximum time the client extends the deadline for incoming messages while waiting for acknowledgment.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is \u003ccode\u003e2.37.0-rc\u003c/code\u003e, and the page contains a list of versions from \u003ccode\u003e2.11.0\u003c/code\u003e up to the current one, all related to the \u003ccode\u003eMaxDeadlineExtensionOption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe default maximum deadline extension time is 10 minutes, but it can be adjusted by the application, noting that a shorter time might increase duplicate messages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaxDeadlineExtensionOption\u003c/code\u003e value is constrained between 10 seconds and 10 minutes and it affects the effective range of the \u003ccode\u003eMinDeadlineExtensionOption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaxDeadlineExtensionOption\u003c/code\u003e uses \u003ccode\u003estd::chrono::seconds\u003c/code\u003e as its underlying type alias.\u003c/p\u003e\n"]]],[],null,[]]