From 3613e1c41d0fb535c780253a1331919c516c089b Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 29 Oct 2019 13:42:33 +0800 Subject: [PATCH] [Mod] only allow 1 thread to query rqdata --- vnpy/app/cta_strategy/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy/engine.py b/vnpy/app/cta_strategy/engine.py index c4622fc2..fbd64f04 100644 --- a/vnpy/app/cta_strategy/engine.py +++ b/vnpy/app/cta_strategy/engine.py @@ -91,7 +91,7 @@ class CtaEngine(BaseEngine): self.stop_order_count = 0 # for generating stop_orderid self.stop_orders = {} # stop_orderid: stop_order - self.init_executor = ThreadPoolExecutor(max_workers=3) + self.init_executor = ThreadPoolExecutor(max_workers=1) self.rq_client = None self.rq_symbols = set()