提交 63cf35d3 编写于 作者: B barrierye

remove concurrency_idx in init_op func

上级 c3356dca
...@@ -339,14 +339,15 @@ class Op(object): ...@@ -339,14 +339,15 @@ class Op(object):
os._exit(-1) os._exit(-1)
# init op # init op
self.concurrency_idx = concurrency_idx
try: try:
if use_multithread: if use_multithread:
with self._for_init_op_lock: with self._for_init_op_lock:
if not self._succ_init_op: if not self._succ_init_op:
self.init_op(concurrency_idx) self.init_op()
self._succ_init_op = True self._succ_init_op = True
else: else:
self.init_op(concurrency_idx) self.init_op()
except Exception as e: except Exception as e:
_LOGGER.error(log(e)) _LOGGER.error(log(e))
os._exit(-1) os._exit(-1)
...@@ -424,8 +425,9 @@ class RequestOp(Op): ...@@ -424,8 +425,9 @@ class RequestOp(Op):
super(RequestOp, self).__init__( super(RequestOp, self).__init__(
name="@G", input_ops=[], concurrency=concurrency) name="@G", input_ops=[], concurrency=concurrency)
# init op # init op
self.concurrency_idx = concurrency_idx
try: try:
self.init_op(0) self.init_op()
except Exception as e: except Exception as e:
_LOGGER.error(e) _LOGGER.error(e)
os._exit(-1) os._exit(-1)
...@@ -449,8 +451,9 @@ class ResponseOp(Op): ...@@ -449,8 +451,9 @@ class ResponseOp(Op):
super(ResponseOp, self).__init__( super(ResponseOp, self).__init__(
name="@R", input_ops=input_ops, concurrency=concurrency) name="@R", input_ops=input_ops, concurrency=concurrency)
# init op # init op
self.concurrency_idx = concurrency_idx
try: try:
self.init_op(0) self.init_op()
except Exception as e: except Exception as e:
_LOGGER.error(e) _LOGGER.error(e)
os._exit(-1) os._exit(-1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册