[Buildbot-devel] Setting a buildslave's active status

Lieven Govaerts lgo at mobsol.be
Thu May 25 11:35:01 UTC 2006


Hi, 


I have a need for one particular buildslave to only trigger it at night. The
buildslave is running on a machine 24h a day, but the owner only wants it
run builds when he's out of the office, so say between 7PM and 7AM. 

Is there currently a possibility to make this kind of setup? I didn't find
it in the documentation or code.

If this isn't possible right now, I'd like to add it. Looking over the code,
I'll probably add an 'active' flag to the SlaveBuilder and maybe add a
callback for checking the current time. In Builder.maybeStartBuild a test
can be added for this active flag ( in the line 'if sb.state == IDLE:'). 

Other opinions?

thanks for your input,

Lieven.






More information about the devel mailing list