示例#1
0
 def _do(self, handler, chan, args, kwargs):
     try:
         ret = handler(*args, **kwargs)
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(ret)
             chan.close()
     except Exception, e:
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(e)
             chan.close()
示例#2
0
 def _do(self, handler, chan, args, kwargs):
     try:
         ret = handler(*args, **kwargs)
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(ret)
             chan.close()
     except Exception, e:
         if chan:
             chan = rebuild_connection(*chan)
             chan.send(e)
             chan.close()
示例#3
0
文件: process.py 项目: llazzaro/WorQ
def _rebuild_connection(authkey, *args):
    current_process().authkey = AuthenticationString(authkey)
    return rebuild_connection(*args)
示例#4
0
文件: process.py 项目: pdam/WorQ
def _rebuild_connection(authkey, *args):
    current_process().authkey = AuthenticationString(authkey)
    return rebuild_connection(*args)