[Buildbot-devel] Choosing a scheduler in the builder description

Dobes Vandermeer dobesv at gmail.com
Sun Nov 6 01:49:02 UTC 2005

On 11/5/05, Brian Warner <warner-buildbot at lothar.com> wrote:
> > I think it would be nice if the schedulers were listed along with the
> > slaves in the builder description, instead of listing the builders in
> > the scheduler (or, supporting both maybe).
> Yeah, I like that better. It will take some hacking to make it work, but I've
> personally been bitten by forgetting to add a new Builder to my 'all'
> scheduler, so having them driven the other way around makes a lot of sense.
> I'll see if I can figure out a good way to implement it. The 'scheduler' key
> would probably take a list of schedulers, but we could also have it take a
> single string if you only had one.

I suppose it would follow previous patterns to have the builder
interface have a method "schedulerFired" or somesuch which is passed
any scheduler that runs, and then the builder decides itself whether
to run or not.

The default implementation of that method may just check whether that
builder's name is in the scheduler's list.

Or you could do it by iterating over all the builders and add to each
scheduler the builders who listed that scheduler's name - then you
have to add a method to the scheduler interface 'addBuilder' or

Well, you've probably thought of these anyway...

More information about the devel mailing list