build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java
public synchronized boolean addReadyTask(BuildTask task) {
        if (!task.readyToBuild()) {
            throw new IllegalArgumentException("a not ready task added to the queue: " + task);
        }
        unfinishedTasks.add(task);
        log.debug("adding task: {}", task);
        readyTasks.add(task);
        return true;
    }
public synchronized boolean addReadyTask(BuildTask task) {
        if (!task.readyToBuild()) {
            throw new IllegalArgumentException("a not ready task added to the queue: " + task);
        }
        unfinishedTasks.add(task);
        log.debug("adding task: {}", task);
        readyTasks.add(task);
        return true;
    }
Add a new, ready to build task to queue

@param task task to be enqueued