Mailinglist Archive: opensuse-buildservice (226 mails)

< Previous Next >
Re: [opensuse-buildservice] Testing whether a BS instance is available?
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Fri, 09 Sep 2011 13:46:44 +0200
  • Message-id: <6834505.GPiPbEsgi0@scherben>
Am Donnerstag, 8. September 2011, 15:25:29 schrieb Karl Eichwalder:
I'm wondering what's the best command to check whether a BS is available
and ready to accept commits? Probably something with "osc api", but
what's the exact command, please?

You may use

osc api /build/_workerstatus

that is at least what the webui monitor is using. You can find all kind of
details about the server state inside. If you get not a 200 HTTP code then
there is some trouble :)

Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx
< Previous Next >