[Buildbot-commits] buildbot/buildbot buildslave.py, 1.5, 1.6 interfaces.py, 1.60, 1.61
Brian Warner
warner at users.sourceforge.net
Sun Aug 12 22:22:48 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6047/buildbot
Modified Files:
buildslave.py interfaces.py
Log Message:
[project @ ISlaveStatus: provide an interface to read BuildSlave.lastMessageReceived]
Original author: warner at lothar.com
Date: 2007-08-12 22:16:56+00:00
Index: buildslave.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/buildslave.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- buildslave.py 12 Aug 2007 22:22:41 -0000 1.5
+++ buildslave.py 12 Aug 2007 22:22:46 -0000 1.6
@@ -152,6 +152,7 @@
def messageReceivedFromSlave(self):
now = time.time()
self.lastMessageReceived = now
+ self.slave_status.setLastMessageReceived(now)
def detached(self, mind):
self.slave = None
Index: interfaces.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/interfaces.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- interfaces.py 12 Aug 2007 07:43:59 -0000 1.60
+++ interfaces.py 12 Aug 2007 22:22:46 -0000 1.61
@@ -278,6 +278,10 @@
def isConnected():
"""Return True if the slave is currently online, False if not."""
+ def lastMessageReceived():
+ """Return a timestamp (seconds since epoch) indicating when the most
+ recent message was received from the buildslave."""
+
class ISchedulerStatus(Interface):
def getName():
"""Return the name of this Scheduler (a string)."""
More information about the Commits
mailing list