@Override
    public TaskResult getExistTaskConfig(TaskRequest request) {
        LOGGER.debug("begin to get all exist task by request={}", request);
        String key = request.getAgentIp() + InlongConstants.UNDERSCORE + request.getClusterName();
        TaskResult taskResult = taskConfigMap.get(key);
        if (taskResult == null) {
            // When an agent is deployed in a container, tasks do not need to specify an IP address
            key = "All" + InlongConstants.UNDERSCORE + request.getClusterName();
            taskResult = taskConfigMap.get(key);
        }
        if (taskResult == null) {
            return null;
        }
        if (request.getMd5() == null || !Objects.equals(request.getMd5(), taskResult.getMd5())) {
            return taskResult;
        }
        return TaskResult.builder()
                .dataConfigs(new ArrayList<>())
                .cmdConfigs(new ArrayList<>())
                .md5(taskResult.getMd5())
                .code(AgentResponseCode.NO_UPDATE)
                .build();
    }
Update task status by command.

@param command command info.
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AgentServiceImpl.java