Exemplo n.º 1
0
 def run(self):
   tid = gs.begin(self.domain, self.msg, self.set_status)
   try:
     self.f()
   except Exception:
     gs.notice(self.domain, gs.traceback())
   finally:
     gs.end(tid)
Exemplo n.º 2
0
 def run(self):
     tid = gs.begin(self.domain, self.msg, self.set_status)
     try:
         self.f()
     except Exception:
         gs.notice(self.domain, gs.traceback())
     finally:
         gs.end(tid)
Exemplo n.º 3
0
  def run(self):
    while True:
      try:
        f, msg, set_status = self.q.get()
        tid = gs.begin(self.domain, msg, set_status)

        try:
          f()
        except Exception:
          gs.notice(self.domain, gs.traceback())
      except:
        pass

      gs.end(tid)
Exemplo n.º 4
0
    def run(self):
        while True:
            try:
                f, msg, set_status = self.q.get()
                tid = gs.begin(self.domain, msg, set_status)

                try:
                    f()
                except Exception:
                    gs.notice(self.domain, gs.traceback())
            except:
                pass

            gs.end(tid)
Exemplo n.º 5
0
 def dispatch(self, f, msg, set_status=False):
   try:
     self.q.put((f, msg, set_status))
   except Exception:
     gs.notice(self.domain, traceback())
Exemplo n.º 6
0
 def run(self):
   try:
     self.f()
   except Exception:
     gs.notice(self.domain, gs.traceback())
Exemplo n.º 7
0
 def dispatch(self, f, msg, set_status=False):
     try:
         self.q.put((f, msg, set_status))
     except Exception:
         gs.notice(self.domain, traceback())
Exemplo n.º 8
0
 def run(self):
     try:
         self.f()
     except Exception:
         gs.notice(self.domain, gs.traceback())