Example #1
0
 def failed(self, reply):
     log.info("failed: %s", reply)
     any = Options(reply.any)
     body = dict(
         sn=reply.sn, any=any.any, status=status(reply.exval), exception=exdict(reply.exval, reply), reply=None
     )
     nj = NotifyJournal()
     nj.write(reply.sn, any.replyto, body)
Example #2
0
 def failed(self, reply):
     log.info('failed: %s', reply)
     any = Options(reply.any)
     body = dict(sn=reply.sn,
                 any=any.any,
                 status=status(reply.exval),
                 exception=exdict(reply.exval, reply),
                 reply=None)
     nj = NotifyJournal()
     nj.write(reply.sn, any.replyto, body)
Example #3
0
 def succeeded(self, reply):
     log.info('succeeded: %s', reply)
     any = Options(reply.any)
     body = dict(sn=reply.sn,
                 any=any.any,
                 status=(200, HTTP_CODES[200]),
                 reply=reply.retval,
                 exception=None)
     nj = NotifyJournal()
     nj.write(reply.sn, any.replyto, body)
Example #4
0
 def succeeded(self, reply):
     log.info("succeeded: %s", reply)
     any = Options(reply.any)
     body = dict(sn=reply.sn, any=any.any, status=(200, HTTP_CODES[200]), reply=reply.retval, exception=None)
     nj = NotifyJournal()
     nj.write(reply.sn, any.replyto, body)