workers signal

master
Steve L. Nyemba 8 years ago
parent a9d1ad6d68
commit 37aa0485c1

@ -41,6 +41,7 @@ class Top(Thread):
self.quit = True self.quit = True
def run(self): def run(self):
while self.quit == False: while self.quit == False:
print ' ** ',self.name,datetime.datetime.today()
for label in self.config : for label in self.config :
self.lock.acquire() self.lock.acquire()
gwriter = self.factory.instance(type=self.write_class,args=self.rw_args) gwriter = self.factory.instance(type=self.write_class,args=self.rw_args)
@ -113,6 +114,7 @@ class Learner(Thread) :
while self.quit == False: while self.quit == False:
r = {} r = {}
lapps = list(self.apps) lapps = list(self.apps)
print ' ** ',self.name,datetime.datetime.today()
for key in data : for key in data :
logs = data[key] logs = data[key]
# #

Loading…
Cancel
Save