for (ApiTask apiTask : apiRequest.getApiTasks()) {
NodeReport nodeReport = nodeReports.get(nodeReportKey);
nodeReport.setUseClusterMsg(false);
ApiTaskInfo apiTaskInfo = apiTask.getApiTaskInfo();
if (nodeReport.getHostname().equals(apiTaskInfo.getHostName())) {
TaskStatus taskStatus =
TaskStatus.valueOf(apiTask.getApiTaskInfo().getStatus());
if (taskStatus.isRunningState()) {
if (clusterRequestStatus.isFailedState() &&
apiTaskInfo.getStderr() != null &&
!apiTaskInfo.getStderr().isEmpty()) {
nodeReport.setAction(apiTaskInfo.getCommandDetail() + ": "
+ apiTaskInfo.getStderr());