[Buildbot-devel] Adding/removing schedulers at runtime

Edward Armes edward.armes at gmail.com
Mon Nov 10 22:44:51 UTC 2014


Hi Christoph,

I've been looking into the something similar as you have recently, from 
what I know it is possible that being said however you still have to 
make the MasterConfig object available at runtime. Also it seems that 
the MasterConfig file is regenerated at Runtime from the master config 
file when a restart is called so it is highly possible that any changes 
you make will be lost.

I would also suggest if want to go down this route to have a look at the 
actual current code for the MasterConfig class, and as you will see the 
properties you set in a dictionary in the master config file are not 
stored in the dictionary but as attributes, and in some cases don't line 
up to the names is the master config file.

However if a developer would like to correct me on the issue, please 
take what they say over what I have written.

Have a good evening

Edward

On 10/11/2014 22:11, Spielmann, Christoph wrote:
> Hi,
>
> I have a short question concerning the possibilities of 
> reconfiguration at runtime. Is it possible to add/remove schedulers to 
> the configuration directly? Looking at the documentation of the class 
> MasterConfig i can see that the schedulers are a stored in a 
> dictionary so in my eyes it should be possible to do something like 
> this 
> c["schedulers"]["anotherscheduler"]=SingleBranchScheduler(name="quick", builderNames=['lin', 
> 'win'])? Would this be enough to add 'anotherscheduler'?
>
> Thanks,
>
> Christoph
>
> --
> -- 
> --------------------------------------------
> Dipl.-Ing. Christoph Spielmann
>
> machineering GmbH & Co. KG
> Simulation und Automatisierung
> Pfrontener Platz 25a
> 80686 München
>
> Tel: + 49 (0) 89 54 72 69 - 28
> Mail:  christoph.spielmann at machineering.de
> Web: www.machineering.de
>
> --------------------------------------------
>
> machineering GmbH & Co. KG, HRA 94550, Amtsgericht München
> machineering Verwaltungs-GmbH, HRB 181877, Amtsgericht München
> Ust-IdNr.: DE268988178
> Geschäftsführung: B.Freyer
>
> --------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20141110/dc9be3c9/attachment.html>


More information about the devel mailing list