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

[Feature Request] Add task running progress (% complete) to the task management API #42786

Open
kunisen opened this issue Jun 3, 2019 · 3 comments
Labels
:Data Management/CAT APIs Text APIs behind /_cat >feature Team:Data Management Meta label for data/management team

Comments

@kunisen
Copy link
Contributor

kunisen commented Jun 3, 2019

It would be great if we can see the percentage of task completion.

For example, GET _tasks/xxx:nnn?human shows

{
  "completed" : false,
  "task" : {
    "node" : "YJJWO3lMT0ir9ORIlRkKZw",
    "id" : 17992692,
    "type" : "transport",
    "action" : "indices:data/write/reindex",
    "status" : {
      "total" : 1384254,
      "updated" : 543820,
      "created" : 5180,
...

It would be great if I can see the (updated+created)/total as %.

FYI, I found some APIs are already having that %.
Much appreciated if we could add this % to task management API as well.

#10805
#11393
#15975

@kunisen kunisen added :Data Management/CAT APIs Text APIs behind /_cat >feature labels Jun 3, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@kunisen kunisen changed the title Add task running progress (% complete) to the task management API [Feature Request] Add task running progress (% complete) to the task management API Jun 3, 2019
@Leaf-Lin
Copy link
Contributor

Leaf-Lin commented Jun 3, 2019

Another useful place to see would be under GET _cat/tasks API as an additional column, %completion. This might not be available for all tasks, but would be useful for some.

And from there, one can estimate "time till completion = running_time / %completion * ( 1-%completion)"

@martijnvg
Copy link
Member

In order to have this kind information in cat task api, there should be some infrastructure in the task framework to easily retrieve a task's progress for tasks that support this. Otherwise this can't be implemented consistently.

@rjernst rjernst added the Team:Data Management Meta label for data/management team label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/CAT APIs Text APIs behind /_cat >feature Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

5 participants