Skip to content

Generalize comment on monitoring reindex tasks #5170

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jxie-1
Copy link
Contributor

@jxie-1 jxie-1 commented Aug 20, 2025

In serverless, only GET is supported for the task management API, so users can't cancel a task.

I think this is the simplest fix, as monitoring the reindex task is probably the most relevant part for troubleshooting. I can also make the description more granular if that's a better approach

Copy link
Contributor

Following you can find the validation changes against the target branch for the APIs.

No changes detected.

You can validate these APIs yourself by using the make validate target.

Copy link

@BrianRothermich BrianRothermich left a comment

Choose a reason for hiding this comment

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

This LGTM

@@ -68,7 +68,7 @@ import { Destination, Source } from './types'
*
* It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes.
* * When requested with `wait_for_completion=true` (default), the request fails if the node shuts down.
* * When requested with `wait_for_completion=false`, a task id is returned, which can be used via the task management API to monitor, debug, or cancel the task. The task may disappear or fail if the node shuts down.
* * When requested with `wait_for_completion=false`, a task id is returned, which can be used via the task management API to monitor the task. The task may disappear or fail if the node shuts down.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* * When requested with `wait_for_completion=false`, a task id is returned, which can be used via the task management API to monitor the task. The task may disappear or fail if the node shuts down.
* * When requested with `wait_for_completion=false`, a task id is returned, for use with the task management APIs. The task may disappear or fail if the node shuts down.

Copy link
Contributor

Choose a reason for hiding this comment

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

totally optional idea, just for consideration if wanted to be even more generic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants