adp-operator 1.2.3__tar.gz → 1.2.4__tar.gz
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.
- {adp_operator-1.2.3 → adp_operator-1.2.4}/PKG-INFO +1 -1
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/file.py +15 -2
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/tcp_server.py +18 -1
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator.egg-info/PKG-INFO +1 -1
- {adp_operator-1.2.3 → adp_operator-1.2.4}/setup.py +1 -1
- {adp_operator-1.2.3 → adp_operator-1.2.4}/MANIFEST.in +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/README.md +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/__main__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/client.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/commands.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/config.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/dependent.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/discovery.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/event_bus.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/file_stream.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/data.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/discovery.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/frontend.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/http.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/identity.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/operator.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/handlers/scan.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/liveness.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/log_stream.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/main.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/node_context.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/operator.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/operator_executor.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/operator_frontend.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/operator_loader.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/operator_metadata.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/operator_service.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/operator_source.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/peer_registry.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/probe.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/protocol.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/reverse_connection.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/routing.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/run_queue.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/runtime.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/service_discovery.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/session.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/socket_channel.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/c2c/state.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/cache_utils.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/collect/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/collect/collect.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/collect/executor.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/collect/member.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/connect.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/constants.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/json2pdf.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/llm_config.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/llm_serving.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/models.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/my_scale_db_storeage.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/base.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/base_stream_object.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/minio_object_storage.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/tos_object_storage.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/operator_init_config.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/operator_utils.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/run_and_load_node_info.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/dataset/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/dataset/cache.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/dataset/storage.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/logger.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/commands/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/commands/common.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/commands/login.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/commands/logs.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/commands/run.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/commands/serve.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/commands/upload.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/management/main.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/models.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/myscale_pool.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/myscale_utils.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/adp_myscale.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/adp_mysql.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/adp_operator_dispatch.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/adp_operator_installer.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/adp_postgres.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/adp_redis.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/c2c_bridge_node.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/c2c_http_gateway.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/c2c_panel_node.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/dataflow_system_prompt_cache.bin +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/operator_directory_watch.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/serving/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/serving/api_llm_serving_request.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/storage.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/utils/__init__.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/utils/dataframe_transport.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/utils/docker_api.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/utils/file_utils.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/utils/myscale_pool.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/utils/myscale_utils.py +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator.egg-info/SOURCES.txt +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator.egg-info/dependency_links.txt +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator.egg-info/entry_points.txt +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator.egg-info/requires.txt +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator.egg-info/top_level.txt +0 -0
- {adp_operator-1.2.3 → adp_operator-1.2.4}/setup.cfg +0 -0
|
@@ -182,6 +182,7 @@ def handle_sync_files(
|
|
|
182
182
|
executor,
|
|
183
183
|
registry,
|
|
184
184
|
request_tracker: RequestTracker,
|
|
185
|
+
source_instance_id=None,
|
|
185
186
|
):
|
|
186
187
|
response = {"type": "sync_files_ack", "node_id": node_id}
|
|
187
188
|
try:
|
|
@@ -202,7 +203,19 @@ def handle_sync_files(
|
|
|
202
203
|
)
|
|
203
204
|
if route is None:
|
|
204
205
|
raise ConnectionError(f"探测不到节点 {identifier}")
|
|
205
|
-
|
|
206
|
+
if source_instance_id not in (None, instance_id):
|
|
207
|
+
route = [source_instance_id, *route]
|
|
208
|
+
logging.info(
|
|
209
|
+
"[文件] 同步路径 %s: %s",
|
|
210
|
+
identifier,
|
|
211
|
+
" -> ".join(route),
|
|
212
|
+
)
|
|
213
|
+
network_route = (
|
|
214
|
+
route[1:]
|
|
215
|
+
if route[:2] == [source_instance_id, instance_id]
|
|
216
|
+
else route
|
|
217
|
+
)
|
|
218
|
+
manifest = _request_on_route(registry, network_route, {
|
|
206
219
|
"type": "file_manifest",
|
|
207
220
|
"session_id": message["session_id"],
|
|
208
221
|
})
|
|
@@ -215,7 +228,7 @@ def handle_sync_files(
|
|
|
215
228
|
for relative_path in changed:
|
|
216
229
|
_send_file(
|
|
217
230
|
registry,
|
|
218
|
-
|
|
231
|
+
network_route,
|
|
219
232
|
message["session_id"],
|
|
220
233
|
relative_path,
|
|
221
234
|
directory / relative_path,
|
|
@@ -478,7 +478,19 @@ def _handle_tcp_message(
|
|
|
478
478
|
elif message_type in {"route_probe", "route_probe_group"}:
|
|
479
479
|
raise ValueError(f"{message_type} 指令必须提供 identifier")
|
|
480
480
|
# Frozen nodes keep discovery and lifecycle control alive for recovery.
|
|
481
|
-
|
|
481
|
+
missing_dependencies = (
|
|
482
|
+
target_executor.missing_dependencies()
|
|
483
|
+
if target_executor is not None else []
|
|
484
|
+
)
|
|
485
|
+
if missing_dependencies and message_type == "sync_files":
|
|
486
|
+
send_json(connection, {
|
|
487
|
+
"type": "sync_files_ack",
|
|
488
|
+
"status": "error",
|
|
489
|
+
"node_id": node_id,
|
|
490
|
+
"error": "节点依赖不满足: " + ", ".join(missing_dependencies),
|
|
491
|
+
})
|
|
492
|
+
return
|
|
493
|
+
if missing_dependencies and message_type not in {
|
|
482
494
|
"identify", "info", "discover", "join", "handshake",
|
|
483
495
|
"hidden", "visible", "shutdown", "kill", "close_session", "event",
|
|
484
496
|
}:
|
|
@@ -747,6 +759,11 @@ def _handle_tcp_message(
|
|
|
747
759
|
target_executor,
|
|
748
760
|
registry,
|
|
749
761
|
request_tracker,
|
|
762
|
+
(
|
|
763
|
+
getattr(target_executor, "instance_id", instance_id)
|
|
764
|
+
if target_executor is not executor
|
|
765
|
+
else instance_id
|
|
766
|
+
),
|
|
750
767
|
)
|
|
751
768
|
elif message_type == "close_session":
|
|
752
769
|
response = {"type": "close_session_ack", "node_id": node_id}
|
|
@@ -9,7 +9,7 @@ ROOT = Path(__file__).parent
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="adp-operator",
|
|
12
|
-
version="1.2.
|
|
12
|
+
version="1.2.4",
|
|
13
13
|
description="ADP operator management and C2C runtime tools",
|
|
14
14
|
long_description=(ROOT / "README.md").read_text(encoding="utf-8"),
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/base_stream_object.py
RENAMED
|
File without changes
|
{adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/minio_object_storage.py
RENAMED
|
File without changes
|
{adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/core/object_storage/tos_object_storage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/dataflow_system_prompt_cache.bin
RENAMED
|
File without changes
|
{adp_operator-1.2.3 → adp_operator-1.2.4}/adp_operator/operators/operator_directory_watch.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|