public Task poll(String taskType, String workerId, String domain) {
        LOGGER.debug("Task being polled: /tasks/poll/{}?{}&{}", taskType, workerId, domain);
        Task task = executionService.getLastPollTask(taskType, workerId, domain);
        if (task != null) {
            LOGGER.debug(
                    "The Task {} being returned for /tasks/poll/{}?{}&{}",
                    task,
                    taskType,
                    workerId,
                    domain);
        }
        Monitors.recordTaskPollCount(taskType, domain, 1);
        return task;
    }
Poll for a task of a certain type.

@param taskType Task name
@param workerId id of the workflow
@param domain Domain of the workflow
@return polled {@link Task}
core/src/main/java/com/netflix/conductor/service/TaskServiceImpl.java