Search code examples
pythonbuildbot

How to find out if buildbot is building?


I'm trying to write a Python script which automatically restarts buildbot if nothing is building. How can the script check to see if there's anything being built?


Solution

  • According to your comments, you should:

    • Create systemd (or any other) script for buildbot master, to run it continuous after start-up and after failing/exiting (worker example)
    • In corresponding buildstep initiate master graceful shutdown with buildbot stop --clean --no-wait
    • init-service would re-start bb-master