[users at bb.net] Scripting a pausing of all build slaves/workers

Pierre Tardy tardyp at gmail.com
Mon May 8 16:05:48 UTC 2017


Ah, so what you really need is cleanshutdown of master

buildbot stop -c

this will make sure the master does not accept any more build, and stop
when all builds are finished.
or you can send a SIGUSR1 (which is equivalent)



Le lun. 8 mai 2017 à 15:58, Sommer, Erik <Erik.Sommer at de.neusoft.com> a
écrit :

> Yes I really have to pause. Our Configuration spreads over an estimation
> of 15 files at the moment. Therefore we cannot use the reconfiguration
> method. We have to stop and start the the buildbot master. In the time we
> wait for the currently running builds we want to prevent all builders from
> accepting new jobs.
>
>
>
> So I see only the way to pause all slaves before restarting the master.
> But I’m open for better ideas.
>
>
>
> Erik
>
>
>
> *Von:* Pierre Tardy [mailto:tardyp at gmail.com]
> *Gesendet:* Montag, 8. Mai 2017 14:42
> *An:* Sommer, Erik; users at buildbot.net
> *Betreff:* Re: [users at bb.net] Scripting a pausing of all build
> slaves/workers
>
>
>
> Hi Erik,
>
> Do you really need to pause the workers?
>
> Reconfiguration is supposed to be seemless.
>
>
>
> The pause method is made for admins to pause the workers while they fix
> them.
>
>
>
> There is also the graceful shutdown procedure, which is made for
> restarting the master.
>
>
>
> HTH
>
>
>
> On Mon, May 8, 2017 at 1:44 PM Sommer, Erik <Erik.Sommer at de.neusoft.com>
> wrote:
>
> Hi together,
>
>
>
> We‘re using buildbot 0.8.14. We have around 60 slaves. For deploying a new
> configuration I constructed a little script which pauses all slaves via the
> command
>
>
>
> *‘http://buildbot <http://buildbot>…/buildslaves/{bot}/pause’ *
>
>
>
> as Http-Post request. The waiting time between every request is in the
> moment 0.2 seconds. The problem there is that this freezes the buildbot
> master. If I apply a longer waiting time I’m fine, but the whole procedure
> takes a lot time. Is there a possibility to pause a slave via the Rest-Api?
> Or another solution to not freezes the mastet?
>
>
>
> Best Regards
>
> Erik Sommer
>
>
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170508/2846e3ae/attachment.html>


More information about the users mailing list