LINUX G33NYUS
LINUX G33NYUS

Reputation: 691

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?

Upvotes: 1

Views: 79

Answers (1)

Frodox
Frodox

Reputation: 26

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

Upvotes: 1

Related Questions