Cannot update `ackDeadline` via `setOptions()`
See original GitHub issueEnvironment details
- OS: Distroless
- Node.js version: v12
- npm version: N/A
@google-cloud/pubsub
version: 2.6.0
Steps to reproduce
- Create a subscription by calling:
const subscription = topic.subscription('example-name', {
ackDeadline: 300,
});
if (!(await subscription.exists())[0]) {
await subscription.create({
ackDeadlineSeconds: 300,
});
}
- Later, attempt to update the
ackDeadline
by calling:
const subscription = topic.subscription('example-name', {
ackDeadline: 60,
});
subscription.setOptions({
ackDeadline: 60,
});
- See that in the Google Cloud Platform console, the deadline does not change:
Other notes
The .setMetadata()
call works just fine, at least with retryPolicy
values.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Class Subscription (3.2.1) | Node.js client library - Google Cloud
A Subscription object will give you access to your Cloud Pub/Sub subscription. Subscriptions are sometimes retrieved when using various ...
Read more >React Native Cannot update a component from inside the ...
Finally I found solution :) it is simple :) I wrapped navigation.setOption({ ... }) by componentDidUpdate(){}. DefaultLogin.js
Read more >v1beta1 - Go Packages
LateInitialize this LiteReservation using its observed tfState. returns True if there are any spec changes for the resource.
Read more >Changelog | google-cloud-cpp
Normally implementation details are not breaking changes, but any application mocking the storage library necessarily depends on these implementation details.
Read more >Index (Apache Beam 2.7.0)
Construct a path from an absolute component path hierarchy. accept() - Method in class org.apache.beam.sdk.extensions.sql.impl.interpreter.operator.arithmetic.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was trying to explain that if you have created two instance and you are setting
ackDeadline
usingsetOption
to one of them subscription will not affect to second one.In above example
subscription2
will use theackDeadline
that has been set on console.@kamalaboulhosn I’m probably explaining this poorly 😄 Feel free to throw in any clarification for that comment.