예제 #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)