return when a task is completed RRS feed

  • Question

  • Is it possible to know when a task has been assigned to a batch service is completed instead of having a timeout?


    Tuesday, November 21, 2017 1:28 PM

All replies

  • You can use the ListTasks or GetTask API to query the status of the task.

    "Active" == The task is still waiting in the queue

    "Running" == The task is running on a node

    "Completed" == The task has completed (either successfully or with a failure)

    Hope that helps,


    Tuesday, November 21, 2017 5:58 PM
  • Thank you for the answer.

    So, we have to query until the task is completed. I would like to avoid polling.

    Also, because the task will take a long time, I would like to show the results in real time. Could you suggest a way for that, maybe download a file with the results every 'x' min?

    Tuesday, November 21, 2017 8:40 PM