oocana 0.16.2__tar.gz → 0.16.3__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.
- {oocana-0.16.2 → oocana-0.16.3}/PKG-INFO +1 -1
- {oocana-0.16.2 → oocana-0.16.3}/oocana/mainframe.py +4 -5
- {oocana-0.16.2 → oocana-0.16.3}/pyproject.toml +1 -1
- {oocana-0.16.2 → oocana-0.16.3}/oocana/__init__.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/oocana/context.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/oocana/data.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/oocana/handle_data.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/oocana/preview.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/oocana/schema.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/oocana/service.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/oocana/throtter.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/__init__.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/test_data.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/test_handle_data.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/test_json.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/test_mainframe.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/test_performance.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/test_schema.py +0 -0
- {oocana-0.16.2 → oocana-0.16.3}/tests/test_throtter.py +0 -0
@@ -4,14 +4,12 @@ from paho.mqtt.enums import CallbackAPIVersion
|
|
4
4
|
import operator
|
5
5
|
from urllib.parse import urlparse
|
6
6
|
import uuid
|
7
|
-
from .data import BlockDict, JobDict, dumps
|
7
|
+
from .data import BlockDict, JobDict, dumps, EXECUTOR_NAME
|
8
8
|
import logging
|
9
9
|
from typing import Optional
|
10
10
|
|
11
11
|
__all__ = ["Mainframe"]
|
12
12
|
|
13
|
-
|
14
|
-
|
15
13
|
class Mainframe:
|
16
14
|
address: str
|
17
15
|
client: mqtt.Client
|
@@ -74,13 +72,14 @@ class Mainframe:
|
|
74
72
|
def report(self, block_info: BlockDict, msg: dict) -> mqtt.MQTTMessageInfo:
|
75
73
|
return self.client.publish("report", dumps({**block_info, **msg}), qos=1)
|
76
74
|
|
77
|
-
def notify_executor_ready(self, session_id: str,
|
75
|
+
def notify_executor_ready(self, session_id: str, package: str | None, identifier: str | None, debug_port: int | None) -> None:
|
78
76
|
self.client.publish(f"session/{session_id}", dumps({
|
79
77
|
"type": "ExecutorReady",
|
80
78
|
"session_id": session_id,
|
81
|
-
"executor_name":
|
79
|
+
"executor_name": EXECUTOR_NAME,
|
82
80
|
"package": package,
|
83
81
|
"identifier": identifier,
|
82
|
+
"debug_port": debug_port,
|
84
83
|
}), qos=1)
|
85
84
|
|
86
85
|
def notify_block_ready(self, session_id: str, job_id: str) -> dict:
|
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
|