async def write_json(self, msg, encoding=None): encoding = encoding or Encoding() logger.debug("writing json: %r", msg) try: return await self.send(serialize(msg, encoding)) except: # noqa logger.exception('Failed to write: %s', msg)
def write_json(self, msg, encoding=None): encoding = encoding or Encoding() logger.debug("writing json: %r", msg) try: return self.write_message(serialize(msg, encoding), binary=True) except: # noqa logger.exception('Failed to write: %s', msg)
def write_json(self, msg, encoding=None): encoding = encoding or Encoding() logger.debug("writing json: %r", msg) return self.write_message(serialize(msg, encoding), binary=True)
def execute(self, df, tasks): encoding = Encoding() task_specs = encoding.encode_list("task", tasks) return self.server.execute(df.name, serialize(task_specs, encoding))