Get Task Info

opensearch_py_ml.ml_commons.MLCommonClient.get_task_info(self, task_id: str, wait_until_task_done: bool = False) object

This method return information about a task running into opensearch cluster (using ml commons api) when we deploy a model

Parameters:
  • task_id (string) – unique id of the task

  • wait_until_task_done (bool) – a boolean indicator if we want to wait until a task done before returning the task related information

Returns:

returns a json object, with detailed information about the task

Return type:

object