in plugin/src/main/java/org/opensearch/ml/model/MLTask.java [64:94]
public MLTask(
String taskId,
String modelId,
MLTaskType taskType,
FunctionName functionName,
MLTaskState state,
MLInputDataType inputType,
Float progress,
String outputIndex,
String workerNode,
Instant createTime,
Instant lastUpdateTime,
String error,
User user,
boolean async
) {
this.taskId = taskId;
this.modelId = modelId;
this.taskType = taskType;
this.functionName = functionName;
this.state = state;
this.inputType = inputType;
this.progress = progress;
this.outputIndex = outputIndex;
this.workerNode = workerNode;
this.createTime = createTime;
this.lastUpdateTime = lastUpdateTime;
this.error = error;
this.user = user;
this.async = async;
}