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)
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)
def dispatch(self, f, msg, set_status=False): try: self.q.put((f, msg, set_status)) except Exception: gs.notice(self.domain, traceback())
def run(self): try: self.f() except Exception: gs.notice(self.domain, gs.traceback())