isar 1.33.3__py3-none-any.whl → 1.33.4__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.
Potentially problematic release.
This version of isar might be problematic. Click here for more details.
- isar/services/service_connections/mqtt/mqtt_client.py +9 -9
- isar/storage/uploader.py +15 -0
- {isar-1.33.3.dist-info → isar-1.33.4.dist-info}/METADATA +1 -1
- {isar-1.33.3.dist-info → isar-1.33.4.dist-info}/RECORD +8 -8
- {isar-1.33.3.dist-info → isar-1.33.4.dist-info}/WHEEL +0 -0
- {isar-1.33.3.dist-info → isar-1.33.4.dist-info}/entry_points.txt +0 -0
- {isar-1.33.3.dist-info → isar-1.33.4.dist-info}/licenses/LICENSE +0 -0
- {isar-1.33.3.dist-info → isar-1.33.4.dist-info}/top_level.txt +0 -0
|
@@ -106,15 +106,15 @@ class MqttClient(MqttClientInterface):
|
|
|
106
106
|
)
|
|
107
107
|
|
|
108
108
|
def on_connect(self, client, userdata, flags, reason_code, properties):
|
|
109
|
-
self.logger.info(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
)
|
|
109
|
+
self.logger.info(f"Connected: {reason_code}")
|
|
110
|
+
|
|
111
|
+
def on_disconnect(self, client, userdata, *args):
|
|
112
|
+
if not args:
|
|
113
|
+
return
|
|
114
|
+
reason_code = args[0] if len(args) < 3 else args[1]
|
|
115
|
+
rc = getattr(reason_code, "value", reason_code)
|
|
116
|
+
if rc != 0:
|
|
117
|
+
self.logger.warning(f"Unexpected disconnect: {reason_code}.")
|
|
118
118
|
|
|
119
119
|
@backoff.on_exception(
|
|
120
120
|
backoff.expo,
|
isar/storage/uploader.py
CHANGED
|
@@ -29,6 +29,14 @@ from robot_interface.telemetry.payloads import (
|
|
|
29
29
|
from robot_interface.utilities.json_service import EnhancedJSONEncoder
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
def has_empty_blob_storage_path(storage_paths: StoragePaths):
|
|
33
|
+
for path in (storage_paths.data_path, storage_paths.metadata_path):
|
|
34
|
+
for value in (path.storage_account, path.blob_container, path.blob_name):
|
|
35
|
+
if not (value and value.strip()):
|
|
36
|
+
return True
|
|
37
|
+
return False
|
|
38
|
+
|
|
39
|
+
|
|
32
40
|
@dataclass
|
|
33
41
|
class UploaderQueueItem:
|
|
34
42
|
inspection: Inspection
|
|
@@ -192,6 +200,13 @@ class Uploader:
|
|
|
192
200
|
inspection_paths = self._upload(item)
|
|
193
201
|
if isinstance(inspection_paths.data_path, LocalStoragePath):
|
|
194
202
|
self.logger.info("Skipping publishing when using local storage")
|
|
203
|
+
elif isinstance(
|
|
204
|
+
inspection_paths.data_path, BlobStoragePath
|
|
205
|
+
) and has_empty_blob_storage_path(inspection_paths):
|
|
206
|
+
self.logger.warning(
|
|
207
|
+
"Skipping publishing: Blob storage paths are empty for inspection %s",
|
|
208
|
+
str(item.inspection.id)[:8],
|
|
209
|
+
)
|
|
195
210
|
else:
|
|
196
211
|
self._publish_inspection_result(
|
|
197
212
|
inspection=item.inspection,
|
|
@@ -54,7 +54,7 @@ isar/services/auth/azure_credentials.py,sha256=9PlwGe5FrPRbW2dp0go7LMp8_l_FRvL8x
|
|
|
54
54
|
isar/services/service_connections/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
isar/services/service_connections/request_handler.py,sha256=0LxC0lu_HXeEf_xmJWjfEsh14oAUI97cpG1IWtBlcs4,4278
|
|
56
56
|
isar/services/service_connections/mqtt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
|
-
isar/services/service_connections/mqtt/mqtt_client.py,sha256=
|
|
57
|
+
isar/services/service_connections/mqtt/mqtt_client.py,sha256=8Dr65JNwPx5-kRY8UsRtZ_nrQ2gXXSUH6LWFOYlnluo,4482
|
|
58
58
|
isar/services/service_connections/mqtt/robot_heartbeat_publisher.py,sha256=SKPvY2QwBxqnhL9aGuZQDGQ8F_NDqPtQI5bzRBIUxkQ,1203
|
|
59
59
|
isar/services/service_connections/mqtt/robot_info_publisher.py,sha256=AxokGk51hRPTxxD2r0P9braPJCMrf1InaCxrUBKkF4g,1402
|
|
60
60
|
isar/services/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -95,9 +95,9 @@ isar/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
95
95
|
isar/storage/blob_storage.py,sha256=d44z3XpZDUbiKwN8Av2gytTJxnefMXrp5VhiGm4PWxU,3703
|
|
96
96
|
isar/storage/local_storage.py,sha256=Rn-iiiz9DI7PzIhevOMshPIaqzJaqBXeVJMQRhVSl2M,2191
|
|
97
97
|
isar/storage/storage_interface.py,sha256=x-imVeQTdL6dCaTaPTHpXwCR6N4e27WxK_Vpumg0x-Y,1230
|
|
98
|
-
isar/storage/uploader.py,sha256=
|
|
98
|
+
isar/storage/uploader.py,sha256=oaGhHqYrtyvJoFUuD7ZyBgdPNkYaSgQokQZkAjmd4vI,10702
|
|
99
99
|
isar/storage/utilities.py,sha256=oLH0Rp7UtrQQdilfITnmXO1Z0ExdeDhBImYHid55vBA,3449
|
|
100
|
-
isar-1.33.
|
|
100
|
+
isar-1.33.4.dist-info/licenses/LICENSE,sha256=3fc2-ebLwHWwzfQbulGNRdcNob3SBQeCfEVUDYxsuqw,14058
|
|
101
101
|
robot_interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
102
|
robot_interface/robot_interface.py,sha256=A6t19lcNU_6AfkYKY5DaF0sheym_SZEAawbfaj36Kjk,8997
|
|
103
103
|
robot_interface/test_robot_interface.py,sha256=FV1urn7SbsMyWBIcTKjsBwAG4IsXeZ6pLHE0mA9EGGs,692
|
|
@@ -121,8 +121,8 @@ robot_interface/telemetry/payloads.py,sha256=RfLlm_te-bV_xcLtbBx27bgE8gkwPAhWBTF
|
|
|
121
121
|
robot_interface/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
122
122
|
robot_interface/utilities/json_service.py,sha256=9N1zijW7K4d3WFR2autpaS8U9o1ibymiOX-6stTKCyk,1243
|
|
123
123
|
robot_interface/utilities/uuid_string_factory.py,sha256=_NQIbBQ56w0qqO0MUDP6aPpHbxW7ATRhK8HnQiBSLkc,76
|
|
124
|
-
isar-1.33.
|
|
125
|
-
isar-1.33.
|
|
126
|
-
isar-1.33.
|
|
127
|
-
isar-1.33.
|
|
128
|
-
isar-1.33.
|
|
124
|
+
isar-1.33.4.dist-info/METADATA,sha256=kFWjErpSnEh4cucIUoioOsgWRnzcxU9BsI65g3hUKqI,31190
|
|
125
|
+
isar-1.33.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
126
|
+
isar-1.33.4.dist-info/entry_points.txt,sha256=TFam7uNNw7J0iiDYzsH2gfG0u1eV1wh3JTw_HkhgKLk,49
|
|
127
|
+
isar-1.33.4.dist-info/top_level.txt,sha256=UwIML2RtuQKCyJJkatcSnyp6-ldDjboB9k9JgKipO-U,21
|
|
128
|
+
isar-1.33.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|