diff --git a/PriceSystem/CalcCmdReceiver.py b/PriceSystem/CalcCmdReceiver.py index 29d9a2a..7adf91a 100644 --- a/PriceSystem/CalcCmdReceiver.py +++ b/PriceSystem/CalcCmdReceiver.py @@ -20,7 +20,7 @@ def worker(): except: cmd = None if cmd is None: - time.sleep(3) + time.sleep(60) logger.info("等待接受计算命令") else: cmd = format_cmd(cmd) diff --git a/PriceSystem/config/__init__.py b/PriceSystem/config/__init__.py index cdcbe47..8862b15 100644 --- a/PriceSystem/config/__init__.py +++ b/PriceSystem/config/__init__.py @@ -8,7 +8,7 @@ def get_logging_config(): def get_worker_num(): - return 20 + return 30 def get_redis_host():