示例#1
0
 def launch_scop(self):
     self.dbg("Launching Stackless Operation")
     if self.blocked:
         return
     d = deferToStackless(self.scop)
     d.addCallback(self.end_scop)
     d.addErrback(self.errb)
示例#2
0
 def end_scop(self, *a, **kw):
     self.launched += 1
     self.dbg("Stackless (%d) Operation End" % self.launched)
     if self.each and not self.launched % self.each:
         self.dbg("Launching Maintanance Operation")
         deferToStackless(self.maop)