|
|
@ -489,13 +489,8 @@ class ModuleResponder(object):
|
|
|
|
|
|
|
|
|
|
|
|
def _send_load_module(self, stream, msg, fullname):
|
|
|
|
def _send_load_module(self, stream, msg, fullname):
|
|
|
|
LOG.debug('_send_load_module(%r, %r)', stream, fullname)
|
|
|
|
LOG.debug('_send_load_module(%r, %r)', stream, fullname)
|
|
|
|
self._router.route(
|
|
|
|
msg.reply(self._build_tuple(fullname),
|
|
|
|
mitogen.core.Message.pickled(
|
|
|
|
handle=mitogen.core.LOAD_MODULE)
|
|
|
|
self._build_tuple(fullname),
|
|
|
|
|
|
|
|
dst_id=msg.src_id,
|
|
|
|
|
|
|
|
handle=mitogen.core.LOAD_MODULE,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
stream.sent_modules.add(fullname)
|
|
|
|
stream.sent_modules.add(fullname)
|
|
|
|
|
|
|
|
|
|
|
|
def _on_get_module(self, msg):
|
|
|
|
def _on_get_module(self, msg):
|
|
|
@ -526,13 +521,8 @@ class ModuleResponder(object):
|
|
|
|
|
|
|
|
|
|
|
|
except Exception:
|
|
|
|
except Exception:
|
|
|
|
LOG.debug('While importing %r', fullname, exc_info=True)
|
|
|
|
LOG.debug('While importing %r', fullname, exc_info=True)
|
|
|
|
self._router.route(
|
|
|
|
msg.reply((fullname, None, None, None, []),
|
|
|
|
mitogen.core.Message.pickled(
|
|
|
|
handle=mitogen.core.LOAD_MODULE)
|
|
|
|
(fullname, None, None, None, []),
|
|
|
|
|
|
|
|
dst_id=msg.src_id,
|
|
|
|
|
|
|
|
handle=msg.reply_to,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Broker(mitogen.core.Broker):
|
|
|
|
class Broker(mitogen.core.Broker):
|
|
|
@ -651,13 +641,7 @@ class IdAllocator(object):
|
|
|
|
allocated = self.router.context_by_id(id_, msg.src_id)
|
|
|
|
allocated = self.router.context_by_id(id_, msg.src_id)
|
|
|
|
|
|
|
|
|
|
|
|
LOG.debug('%r: allocating %r to %r', self, allocated, requestee)
|
|
|
|
LOG.debug('%r: allocating %r to %r', self, allocated, requestee)
|
|
|
|
self.router.route(
|
|
|
|
msg.reply(id_)
|
|
|
|
mitogen.core.Message.pickled(
|
|
|
|
|
|
|
|
id_,
|
|
|
|
|
|
|
|
dst_id=msg.src_id,
|
|
|
|
|
|
|
|
handle=msg.reply_to,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LOG.debug('%r: publishing route to %r via %r', self,
|
|
|
|
LOG.debug('%r: publishing route to %r via %r', self,
|
|
|
|
allocated, requestee)
|
|
|
|
allocated, requestee)
|
|
|
|