Skip to content
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

Use request context while handling queries #5418

Merged
merged 1 commit into from
May 18, 2020
Merged

Use request context while handling queries #5418

merged 1 commit into from
May 18, 2020

Conversation

mangalaman93
Copy link
Contributor

@mangalaman93 mangalaman93 commented May 11, 2020

while running queries, we should propagate the request context down the tree. This ensures that if the caller has cancelled the request i.e. not waiting for the response, we stop executing the query too.


This change is Reviewable

while running queries, we should propagate the request
context down the tree. This ensures that if the caller
has cancelled the request i.e. not waiting for the response,
we stop executing the query too.
@mangalaman93 mangalaman93 requested review from manishrjain and a team as code owners May 11, 2020 12:17
Copy link
Contributor

@pawanrawal pawanrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong: Thanks @mangalaman93

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain)

@pawanrawal pawanrawal merged commit ced04b8 into dgraph-io:master May 18, 2020
@mangalaman93 mangalaman93 deleted the aman/ctx branch May 18, 2020 08:27
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 18, 2020
* Use request context while handling queries

while running queries, we should propagate the request
context down the tree. This ensures that if the caller
has cancelled the request i.e. not waiting for the response,
we stop executing the query too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants