<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Chris,<br>
    <br>
    We do something similar, but not through cron (only our masters
    start through cron).<br>
    <br>
    We have a builder (actually a couple for different sets of workers)
    that cycles through our workers and uses ssh to attempt to start
    them. If the worker is already running, we get back the usual
    warning about a twistd server already running.<br>
    <br>
    Having a dictionary of workers and their directories also lets us do
    things like prepend the worker name to various builders easily. I
    don't think we have a case where a particular build would build on
    multiple workers -- we treat that as separate.<br>
    <br>
    Because this process also establishes a consistent environment, we
    also NEVER start workers manually. We always let the builder do it.
    If one needs restarting, we kill it and let the builder start it
    next time around.<br>
    <br>
    Neil Gilmore<br>
    grammatech.com<br>
    <br>
    <div class="moz-cite-prefix">On 3/31/2017 9:30 AM, Chris Spencer
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANe40gJJH5k5x9gY0ORTkfQzNedYi-J3N+66ythMwPH6vOqRiQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>How do you check programmatically to see if a worker is
          running?<br>
          <br>
        </div>
        My worker keeps getting sigkilled, and it's unclear why, so I'd
        like to create a cron job to check to see if it's running, and
        if it's stopped, to restart buildbot. However, buildbot-worker
        doesn't have a `status<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@buildbot.net">users@buildbot.net</a>
<a class="moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users">https://lists.buildbot.net/mailman/listinfo/users</a></pre>
    </blockquote>
    <br>
  </body>
</html>