提交 c96b7e22 编写于 作者: B barrierye

bug fix

上级 b2b43a9f
...@@ -559,7 +559,8 @@ class DAG(object): ...@@ -559,7 +559,8 @@ class DAG(object):
self._pack_func = pack_func self._pack_func = pack_func
self._unpack_func = unpack_func self._unpack_func = unpack_func
self._tracer.set_channels(self._channels) if self._tracer is not None:
self._tracer.set_channels(self._channels)
return self._input_channel, self._output_channel, self._pack_func, self._unpack_func return self._input_channel, self._output_channel, self._pack_func, self._unpack_func
......
...@@ -364,8 +364,9 @@ class Op(object): ...@@ -364,8 +364,9 @@ class Op(object):
input_offset.append(offset) input_offset.append(offset)
else: else:
_LOGGER.critical( _LOGGER.critical(
"{} Failed to process: expect input type is dict or listi" "{} Failed to process: expect input type is dict(sample"
", but get {}".format(op_info_prefix, type(one_input))) " input) or list(batch input), but get {}".format(
op_info_prefix, type(one_input)))
os._exit(-1) os._exit(-1)
midped_batch = None midped_batch = None
......
...@@ -92,8 +92,9 @@ class PipelineServer(object): ...@@ -92,8 +92,9 @@ class PipelineServer(object):
json.dumps( json.dumps(
conf, indent=4, separators=(',', ':')))) conf, indent=4, separators=(',', ':'))))
if self._build_dag_each_worker is True: if self._build_dag_each_worker is True:
_LOGGER.info( _LOGGER.warning(
"(Make sure that install grpcio whl with --no-binary flag)") "(Make sure that install grpcio whl with --no-binary flag: "
"pip install grpcio --no-binary grpcio)")
_LOGGER.info("-------------------------------------------") _LOGGER.info("-------------------------------------------")
self._conf = conf self._conf = conf
...@@ -181,7 +182,7 @@ class ServerYamlConfChecker(object): ...@@ -181,7 +182,7 @@ class ServerYamlConfChecker(object):
@staticmethod @staticmethod
def check_tracer_conf(conf): def check_tracer_conf(conf):
default_conf = {"interval_s": 600, } default_conf = {"interval_s": -1, }
conf_type = {"interval_s": int, } conf_type = {"interval_s": int, }
......
...@@ -130,7 +130,7 @@ class PerformanceTracer(object): ...@@ -130,7 +130,7 @@ class PerformanceTracer(object):
_LOGGER.info("\tQuery count[{}]".format(tot)) _LOGGER.info("\tQuery count[{}]".format(tot))
_LOGGER.info("\tQPS[{} q/s]".format(qps)) _LOGGER.info("\tQPS[{} q/s]".format(qps))
_LOGGER.info("\tSucc[{}]".format(1 - 1.0 * err_count / tot)) _LOGGER.info("\tSucc[{}]".format(1 - 1.0 * err_count / tot))
_LOGGER.info("\tError req[{}]".format([", ".join([str(x) for x in err_request])])) _LOGGER.info("\tError req[{}]".format(", ".join([str(x) for x in err_request)]))
_LOGGER.info("\tLatency:") _LOGGER.info("\tLatency:")
_LOGGER.info("\t\tave[{} ms]".format(ave_cost)) _LOGGER.info("\t\tave[{} ms]".format(ave_cost))
for latency in latencys: for latency in latencys:
......
...@@ -16,6 +16,7 @@ import sys ...@@ -16,6 +16,7 @@ import sys
import logging import logging
import threading import threading
import multiprocessing import multiprocessing
import multiprocessing.managers
if sys.version_info.major == 2: if sys.version_info.major == 2:
import Queue import Queue
from Queue import PriorityQueue from Queue import PriorityQueue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册