if (status == 0) { LOG.debug("Successful finish of the task reported. Task {} by worker {}", taskId, workerId); taskService.completeTask(clusterTask, status); } else { LOG.debug("Failure to finish task reported. Task {} by worker {}", taskId, workerId);