sycommon-python-lib 0.1.56b16__py3-none-any.whl → 0.1.56b17__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,6 +78,23 @@ class NacosServiceDiscovery:
78
78
  SYLogger.info(
79
79
  f"nacos:未找到相同版本({version_to_use})的实例,筛选出 {len(no_version_instances)} 个无版本号的实例")
80
80
  return no_version_instances
81
+ else:
82
+ no_version_instances = [
83
+ instance for instance in all_instances
84
+ if 'version' not in instance.get('metadata', {})
85
+ ]
86
+
87
+ if no_version_instances:
88
+ # 从通用实例中轮询
89
+ with self._round_robin_lock:
90
+ selected_index = self._round_robin_index % len(
91
+ no_version_instances)
92
+ self._round_robin_index = (
93
+ selected_index + 1) % len(no_version_instances)
94
+
95
+ SYLogger.info(
96
+ f"nacos:无版本请求,从 {len(no_version_instances)} 个通用实例中选择")
97
+ return [no_version_instances[selected_index]]
81
98
 
82
99
  SYLogger.info(
83
100
  f"nacos:使用轮询方式从 {len(all_instances)} 个实例中选择")
@@ -1,28 +1,28 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sycommon-python-lib
3
- Version: 0.1.56b16
3
+ Version: 0.1.56b17
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
7
7
  Requires-Dist: aio-pika>=9.5.8
8
- Requires-Dist: aiohttp>=3.13.2
8
+ Requires-Dist: aiohttp>=3.13.3
9
9
  Requires-Dist: aiomysql>=0.3.2
10
10
  Requires-Dist: decorator>=5.2.1
11
- Requires-Dist: fastapi>=0.127.0
11
+ Requires-Dist: fastapi>=0.128.0
12
12
  Requires-Dist: kafka-python>=2.3.0
13
- Requires-Dist: langchain>=1.2.0
14
- Requires-Dist: langchain-core>=1.2.6
15
- Requires-Dist: langchain-openai>=1.1.6
13
+ Requires-Dist: langchain>=1.2.3
14
+ Requires-Dist: langchain-core>=1.2.7
15
+ Requires-Dist: langchain-openai>=1.1.7
16
16
  Requires-Dist: langfuse>=3.11.2
17
- Requires-Dist: langgraph>=1.0.5
17
+ Requires-Dist: langgraph>=1.0.6
18
18
  Requires-Dist: loguru>=0.7.3
19
19
  Requires-Dist: mysql-connector-python>=9.5.0
20
20
  Requires-Dist: nacos-sdk-python<3.0,>=2.0.9
21
- Requires-Dist: psutil>=7.1.3
21
+ Requires-Dist: psutil>=7.2.1
22
22
  Requires-Dist: pydantic>=2.12.5
23
23
  Requires-Dist: python-dotenv>=1.2.1
24
24
  Requires-Dist: pyyaml>=6.0.3
25
- Requires-Dist: sentry-sdk[fastapi]>=2.48.0
25
+ Requires-Dist: sentry-sdk[fastapi]>=2.49.0
26
26
  Requires-Dist: sqlalchemy[asyncio]>=2.0.45
27
27
  Requires-Dist: starlette>=0.50.0
28
28
  Requires-Dist: uvicorn>=0.40.0
@@ -70,7 +70,7 @@ sycommon/synacos/nacos_client_base.py,sha256=l5jpall6nEt0Hy07Wk-PVU0VN0BmD_Mmtld
70
70
  sycommon/synacos/nacos_config_manager.py,sha256=Cff-4gpp0aD7sQVi-nEvDO4BWqK9abEDDDJ9qXKFQgs,4399
71
71
  sycommon/synacos/nacos_heartbeat_manager.py,sha256=G80_pOn37WdO_HpYUiAfpwMqAxW0ff0Bnw0NEuge9v0,5568
72
72
  sycommon/synacos/nacos_service.py,sha256=BezQ1eDIYwBPE567Po_Qh1Ki_z9WmhZy1J1NiTPbdHY,6118
73
- sycommon/synacos/nacos_service_discovery.py,sha256=vE72BCLBv4fQ1H9CQJ8efC6R2SPMQlAWPPTb8Ae7i2g,6024
73
+ sycommon/synacos/nacos_service_discovery.py,sha256=O0M4facMa3I9YDFaovrfiTnCMtJWTuewbt9ce4a2-CA,6828
74
74
  sycommon/synacos/nacos_service_registration.py,sha256=plg2PmH8CWgmVnPtiIXBxtj-3BpyMdSzKr1wyWRdzh4,10968
75
75
  sycommon/synacos/param.py,sha256=KcfSkxnXOa0TGmCjY8hdzU9pzUsA8-4PeyBKWI2-568,1765
76
76
  sycommon/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -79,8 +79,8 @@ sycommon/tools/env.py,sha256=Ah-tBwG2C0_hwLGFebVQgKdWWXCjTzBuF23gCkLHYy4,2437
79
79
  sycommon/tools/merge_headers.py,sha256=HV_i52Q-9se3SP8qh7ZGYl8bP7Fxtal4CGVkyMwEdM8,4373
80
80
  sycommon/tools/snowflake.py,sha256=xQlYXwYnI85kSJ1rZ89gMVBhzemP03xrMPVX9vVa3MY,9228
81
81
  sycommon/tools/timing.py,sha256=OiiE7P07lRoMzX9kzb8sZU9cDb0zNnqIlY5pWqHcnkY,2064
82
- sycommon_python_lib-0.1.56b16.dist-info/METADATA,sha256=V5zIsx7nwAUlwFSjQXfBa7e5jZwwsjkkXC0IjdgIhQ4,7302
83
- sycommon_python_lib-0.1.56b16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- sycommon_python_lib-0.1.56b16.dist-info/entry_points.txt,sha256=q_h2nbvhhmdnsOUZEIwpuoDjaNfBF9XqppDEmQn9d_A,46
85
- sycommon_python_lib-0.1.56b16.dist-info/top_level.txt,sha256=98CJ-cyM2WIKxLz-Pf0AitWLhJyrfXvyY8slwjTXNuc,17
86
- sycommon_python_lib-0.1.56b16.dist-info/RECORD,,
82
+ sycommon_python_lib-0.1.56b17.dist-info/METADATA,sha256=zz5lBYksOaYleWnVs0ZDl8NH1aqGwJ3BS5SNeu4Lv3s,7302
83
+ sycommon_python_lib-0.1.56b17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
+ sycommon_python_lib-0.1.56b17.dist-info/entry_points.txt,sha256=q_h2nbvhhmdnsOUZEIwpuoDjaNfBF9XqppDEmQn9d_A,46
85
+ sycommon_python_lib-0.1.56b17.dist-info/top_level.txt,sha256=98CJ-cyM2WIKxLz-Pf0AitWLhJyrfXvyY8slwjTXNuc,17
86
+ sycommon_python_lib-0.1.56b17.dist-info/RECORD,,