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

[Enhancement] Automate updating async tasks status for BATCH_PREDICTION #3218

Open
Zhangxunmt opened this issue Nov 13, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@Zhangxunmt
Copy link
Collaborator

What is the bug?
Starting from OpenSearch 2.17, the async task type "BATCH_PREDICTION" relies on the "Get Task" API to update its status. This dependency means that the task status may become outdated if the Get Task API is not frequently invoked. As a result, tasks may remain incorrectly in the "RUNNING" status, which can cause issues with the task rate limiter. The rate limiter depends on an accurate count of tasks in the "RUNNING" state, and an excess of these tasks can lead to request throttling.

To prevent tasks from remaining in the wrong status, it’s essential to track the status of "BATCH_PREDICTION" tasks promptly within ML Commons. This will help avoid incorrect status counts and ensure that the rate limiter functions efficiently.

How can one reproduce the bug?
Create "BATCH_PREDICTION" task and it stays in "Created" or "Running" status forever without invoking "Get Task" API.

What is the expected behavior?
The "BATCH_PREDICTION" tasks should update status on its own.

@Zhangxunmt Zhangxunmt added bug Something isn't working untriaged labels Nov 13, 2024
@Zhangxunmt Zhangxunmt self-assigned this Nov 13, 2024
@pyek-bot
Copy link
Contributor

Is this related to this: #3161?

@Zhangxunmt
Copy link
Collaborator Author

Yes it's the same issue. I didn't notice this was created. Will combine it with the original one and let Bhavana to handle this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

3 participants