def _invoke(self, args): self.log.info("Invoking function {} with args {}...".format(self.function_name, args)) try: result = apply_with_conversion(self._the_function(), args) serialized_result = self.serializer.serialize(result, limit=self.limit) self._send_update("result", serialized_result) self.ok() except Exception as e: self.error("Error while invoking function: {}".format(str(e)))
def _invoke(self, args): self.log.info("Invoking function {} with args {}...".format( self.function_name, args)) try: result = apply_with_conversion(self._the_function(), args) serialized_result = self.serializer.serialize(result, limit=self.limit) self._send_update("result", serialized_result) self.ok() except Exception as e: self.error("Error while invoking function: {}".format(str(e)))
def _invoke(self, args): self.log.info("Invoking function {} with args {}...".format( self.function_name, args)) result = apply_with_conversion(self._the_function(), args) serialized_result = self.serializer.serialize(result, limit=self.limit) self._send_update("result", serialized_result)