-
Notifications
You must be signed in to change notification settings - Fork 598
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
add maxInProgress option #650
add maxInProgress option #650
Conversation
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
5979854
to
2e18cca
Compare
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
@leibale - as @googlebot says, please confirm you're okay with my incorporation of your work here :) Also, please take a look when you can to make sure this works for you. |
how confirm that? i already signed on CLA |
There's no formal way of telling the bot we are ok with it, it's not a very smart bot. :) Just confirm with us that you're cool with these changes. |
I just double checked -- leibale signed the CLA. |
@stephenplusplus my code working like a charm 😉. |
@leibale great :) I was hoping you could test this branch out as well, as I had to make some changes to your original work. $ npm install --save stephenplusplus/gcloud-node#spp--pubsub-add-maxInProgress |
what about that? |
The code in this PR is different than what you originally sent us. Did you try out the code from this PR? |
in "stephenplusplus/gcloud-node#spp--pubsub-add-maxInProgress" branch no option to mark message as done without ack, i cant test.. |
Can you explain that with some example code? |
subscription.on('message', function (message) {
request.get(message.data.url, function (err) {
if (err) { // return the message to the queue
return subscription.done(); // inProgress--
}
subscription.ack(message.ackId);
});
}); |
Okay, I think I misunderstood the idea originally, then. I think what you want is basically to be able to pause and resume the pulling? Would just adding |
no.. if i try to process message and i got error i need to down the inProgress without ack the message. my english so bad :( |
and..? |
i want to remove my fork and go back to master branch- time estimation for this enhancement? |
2e18cca
to
b92d1d3
Compare
Sorry for the delays. I hopefully addressed this now with a new method, subscription.on('message', function (message) {
request.get(message.data.url, function (err) {
if (err) {
return message.skip();
}
subscription.ack(message.ackId);
});
}); Both |
b92d1d3
to
9fb635d
Compare
now it's looks good- i try it tomorrow |
|
Woops, good catch. Thanks! |
@stephenplusplus 👍 |
Haha, me too! As long as you give me longer than an hour :) I hope to get a lot of the outstanding PRs merged by the end of the week, and if that goes well, I'll speed this one up. |
ok. thanks alot for everything. :) |
another mistake- you need to do the |
1a8f04b
to
594f532
Compare
CLAs look good, thanks! |
Thanks! Fixed. |
594f532
to
e914998
Compare
CLAs look good, thanks! |
@callmehiphop PTAL. |
LGTM 👍 |
…gress add maxInProgress option
Thanks for the review and thanks for the idea @leibale! |
…andwritten libraries (#650) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: googleapis/googleapis@84594b3 Source-Link: googleapis/googleapis-gen@ed74f97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9
…andwritten libraries (#650) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: googleapis/googleapis@84594b3 Source-Link: googleapis/googleapis-gen@ed74f97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 470911839 Source-Link: googleapis/googleapis@3527566 Source-Link: googleapis/googleapis-gen@f16a1d2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9 feat: accept google-gax instance as a parameter Please see the documentation of the client constructor for details. PiperOrigin-RevId: 470332808 Source-Link: googleapis/googleapis@d4a2367 Source-Link: googleapis/googleapis-gen@e97a1ac Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
…de 8 tests (#650) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * docs: more detailed docs on APIs such as Environment, Intents, Sessions. PiperOrigin-RevId: 321243814 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 14 15:08:49 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 84ebe7c62f4c0875e001752fa84e87e629a1d418 Source-Link: googleapis/googleapis@84ebe7c
Continuing from #649
To Dos: