public int getQueueSizeForTask(
            String taskType, String domain, String isolationGroupId, String executionNamespace) {
        Validate.notBlank(taskType, "Task type cannot be blank");

        List<Object> params = new LinkedList<>();
        params.add("taskType");
        params.add(taskType);

        if (StringUtils.isNotBlank(domain)) {
            params.add("domain");
            params.add(domain);
        }

        if (StringUtils.isNotBlank(isolationGroupId)) {
            params.add("isolationGroupId");
            params.add(isolationGroupId);
        }

        if (StringUtils.isNotBlank(executionNamespace)) {
            params.add("executionNamespace");
            params.add(executionNamespace);
        }

        Integer queueSize =
                getForEntity(
                        "tasks/queue/size",
                        params.toArray(new Object[0]),
                        new GenericType<Integer>() {});
        return queueSize != null ? queueSize : 0;
    }
Removes a task from a taskType queue

@param taskType the taskType to identify the queue
@param taskId the id of the task to be removed
client/src/main/java/com/netflix/conductor/client/http/TaskClient.java