-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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 description to submit and get async search, as well as cancel tasks #57745
Add description to submit and get async search, as well as cancel tasks #57745
Conversation
This makes it easier to debug where such tasks come from in case they are returned from the get tasks API. Also renamed the last occurrence of waitForCompletion to waitForCompletionTimeout in get async search request.
Pinging @elastic/es-search (:Search/Search) |
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.
I left one comment, LGTM otherwise
return "waitForCompletionTimeout[" + waitForCompletionTimeout + | ||
"], keepOnCompletion[" + keepOnCompletion + | ||
"] keepAlive[" + keepAlive + | ||
"], request=" + request.getDescription(); |
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.
SubmitAsyncSearchRequest
should also override getDescription
?
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.
ehm, actually, what I did is not needed for submit, because we already provide the description to createTask, which is the result of submit#toString, which holds the same info that I meant to add. So nothing to do for submit unless we want to generate the description in a lazy way like search does.
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.
let's do it lazily since we print the request too ?
run elasticsearch-ci/bwc |
…ks (#57745) This makes it easier to debug where such tasks come from in case they are returned from the get tasks API. Also renamed the last occurrence of waitForCompletion to waitForCompletionTimeout in get async search request.
This makes it easier to debug where such tasks come from in case they are returned from the get tasks API.
Also renamed the last occurrence of waitForCompletion to waitForCompletionTimeout in get async search request.