lib/pigeonkeeper.js
function startReadyProcesses()
    {
        // Start as many processes as we can!
        //writeToLog("INFO", "***** maxNumberOfRunningProcesses = " + maxNumberOfRunningProcesses + "; numberOfRunningProcesses = " + numberOfRunningProcesses);
        var numVertices = graph.vertexCount();
        var vertexIds = graph.getVertexIds();

        for(var i = 0; i < numVertices; i++)
        {
            if(graph.getVertex(vertexIds[i]).state == "READY")
            {
                if(maxNumberOfRunningProcesses > 0 && numberOfRunningProcesses < maxNumberOfRunningProcesses)
                {
                    numberOfRunningProcesses++;
                    graph.getVertex(vertexIds[i]).setState("IN_PROGRESS");
                }
                else if(maxNumberOfRunningProcesses <= 0)
                {
                    numberOfRunningProcesses++;
                    graph.getVertex(vertexIds[i]).setState("IN_PROGRESS");
                }
            }
        }
    }
function startReadyProcesses()
    {
        // Start as many processes as we can!
        //writeToLog("INFO", "***** maxNumberOfRunningProcesses = " + maxNumberOfRunningProcesses + "; numberOfRunningProcesses = " + numberOfRunningProcesses);
        var numVertices = graph.vertexCount();
        var vertexIds = graph.getVertexIds();

        for(var i = 0; i < numVertices; i++)
        {
            if(graph.getVertex(vertexIds[i]).state == "READY")
            {
                if(maxNumberOfRunningProcesses > 0 && numberOfRunningProcesses < maxNumberOfRunningProcesses)
                {
                    numberOfRunningProcesses++;
                    graph.getVertex(vertexIds[i]).setState("IN_PROGRESS");
                }
                else if(maxNumberOfRunningProcesses <= 0)
                {
                    numberOfRunningProcesses++;
                    graph.getVertex(vertexIds[i]).setState("IN_PROGRESS");
                }
            }
        }
    }
function startReadyProcesses ( ) { // Start as many processes as we can! //writeToLog("INFO", "***** maxNumberOfRunningProcesses = " + maxNumberOfRunningProcesses + "; numberOfRunningProcesses = " + numberOfRunningProcesses); var numVertices = graph . vertexCount ( ) ; var vertexIds = graph . getVertexIds ( ) ; for ( var i = 0 ; i < numVertices ; i ++ ) { if ( graph . getVertex ( vertexIds [ i ] ) . state == "READY" ) { if ( maxNumberOfRunningProcesses > 0 && numberOfRunningProcesses < maxNumberOfRunningProcesses ) { numberOfRunningProcesses ++ ; graph . getVertex ( vertexIds [ i ] ) . setState ( "IN_PROGRESS" ) ; } else if ( maxNumberOfRunningProcesses <= 0 ) { numberOfRunningProcesses ++ ; graph . getVertex ( vertexIds [ i ] ) . setState ( "IN_PROGRESS" ) ; } } } }
Starts all processes where associated vertices are READY

@private
Starts all processes where associated vertices are READY