@Override
    public Integer getTaskQueueSize(
            String taskType, String domain, String isolationGroupId, String executionNamespace) {
        String queueName =
                QueueUtils.getQueueName(
                        taskType,
                        StringUtils.trimToNull(domain),
                        StringUtils.trimToNull(isolationGroupId),
                        StringUtils.trimToNull(executionNamespace));

        return executionService.getTaskQueueSize(queueName);
    }
Get Task type queue sizes.

@param taskTypes List of task types.
@return map of task type as Key and queue size as value.
core/src/main/java/com/netflix/conductor/service/TaskServiceImpl.java