make slave quit if no pending build

1 view
Skip to first unread message

Jarda Grešula

unread,
Jan 18, 2009, 6:27:46 AM1/18/09
to Bitten
Can be a build slave configured so that it either performs a
single build or quits immediately if there is no pending build?

The simplest solution I've found is to patch slave.py as follows
and run it with --single and --interval=-1.

Index: slave.py
===================================================================
--- slave.py (revision 571)
+++ slave.py (working copy)
@@ -175,6 +175,8 @@
raise ExitSlave(EX_UNAVAILABLE)
except ExitSlave, e:
return e.exit_code
+ if self.poll_interval < 0:
+ raise ExitSlave(EX_OK)
time.sleep(self.poll_interval)

def quit(self):


thanks,
--
Jarda

Erik Bray

unread,
Jan 22, 2009, 11:55:26 AM1/22/09
to bit...@googlegroups.com

Looks okay to me. I'd suggest submitting a ticket for this.

Reply all
Reply to author
Forward
0 new messages