Hi

this has to do with the timing :-(

you have 10 projects scheduled to build at 22:00 (same Q but different
priority)


there is a loop in ccnet that checks every 250 milliseconds if a project
needs to be build

something like this

timer_elapsed
   for (i = 0 to amountOf projects)
  {
     if (  project[i];needsToBebuild )
         {
            Integrate_project[i]
         }
}



now the situation :

it's 21:59:59
we're in this loop
project 1 does not need to be build (not 22:00)

now the time gets 22:00:00
counter of the loop is at 2 and project 2 is set in the Q to be build
and so on for the next projectcs, they get pending state (project 2 is
building)


after 250 milliseconds the timer elapses again and project 1 is added to the
Q


so this explains why the build order may be out of sync



with kind regards
Ruben Willems






On Fri, Feb 5, 2010 at 9:45 PM, kriz82 <[email protected]>wrote:

>
> Hello,
>
> I have ten projects on ccnet server.I want the projects to by executed
> sequentially, one by one during night. So i added them to the same
> queue and set a different queuePriority for each project (1,2,3 and so
> on...).  I am using scheduletrigger for nightly builds. I setup the
> same start time for each build. I would expect that the first executed
> project would be the one with priority 1, however it looks like the
> 1st project is picked up randomly. The remaining projects are OK and
> executed in expected order.
>
> To workaround the problem I am starting the project with the highest
> piority one minute before other projects so the projects have a time
> to find their place in a queue. But i dont like this solution, I would
> prefer to have the same start time for each project and let the
> queuePriority decide about the execution order.
>
> Any thoughts?
>

Reply via email to