-
Notifications
You must be signed in to change notification settings - Fork 70
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
Supply cancelable context to ALL workers. #167
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: yiwenlong <wlong.yi@gmail.com>
Signed-off-by: yiwenlong <wlong.yi@gmail.com>
yiwenlong
force-pushed
the
improve/issue#164
branch
from
April 3, 2021 12:13
7f658b3
to
e290685
Compare
guoger
requested changes
Apr 3, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- conventionally,
ctx
is passed as first argument in method. - we ought to create one cancellable context from main (or entry), and cascade it all the way to all workers.
Got it |
yiwenlong
changed the title
Supply cancelable context to gRPC clients.
Supply cancelable context to ALL workers.
Apr 4, 2021
yiwenlong
force-pushed
the
improve/issue#164
branch
6 times, most recently
from
April 6, 2021 03:06
9bac8bf
to
4187e45
Compare
Create one cancellable context from entry. Signed-off-by: yiwenlong <wlong.yi@gmail.com>
yiwenlong
force-pushed
the
improve/issue#164
branch
from
April 6, 2021 03:24
4187e45
to
6c120a4
Compare
guoger
requested changes
Apr 6, 2021
Signed-off-by: yiwenlong <wlong.yi@gmail.com>
Signed-off-by: yiwenlong <wlong.yi@gmail.com>
yiwenlong
force-pushed
the
improve/issue#164
branch
from
April 7, 2021 01:30
16d5548
to
0658ebd
Compare
guoger
approved these changes
Apr 7, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #164