nedo-vision-worker 1.2.3__py3-none-any.whl → 1.2.5__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.
- nedo_vision_worker/__init__.py +1 -1
- nedo_vision_worker/services/AIModelClient.py +2 -12
- nedo_vision_worker/services/WorkerSourceUpdater.py +7 -2
- {nedo_vision_worker-1.2.3.dist-info → nedo_vision_worker-1.2.5.dist-info}/METADATA +1 -1
- {nedo_vision_worker-1.2.3.dist-info → nedo_vision_worker-1.2.5.dist-info}/RECORD +8 -8
- {nedo_vision_worker-1.2.3.dist-info → nedo_vision_worker-1.2.5.dist-info}/WHEEL +0 -0
- {nedo_vision_worker-1.2.3.dist-info → nedo_vision_worker-1.2.5.dist-info}/entry_points.txt +0 -0
- {nedo_vision_worker-1.2.3.dist-info → nedo_vision_worker-1.2.5.dist-info}/top_level.txt +0 -0
nedo_vision_worker/__init__.py
CHANGED
|
@@ -160,12 +160,8 @@ class AIModelClient(GrpcClientBase):
|
|
|
160
160
|
|
|
161
161
|
def _handle_existing_model(self, server_model, local_model, updated_models: List):
|
|
162
162
|
if not self._model_file_exists(local_model.file):
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
logging.warning(f"⚠️ Model file missing for {local_model.name}. Re-downloading...")
|
|
166
|
-
self._schedule_download(server_model)
|
|
167
|
-
else:
|
|
168
|
-
logging.debug(f"⏳ Model {local_model.name} is already being downloaded, skipping...")
|
|
163
|
+
logging.warning(f"⚠️ Model file missing for {local_model.name}. Re-downloading...")
|
|
164
|
+
self._schedule_download(server_model)
|
|
169
165
|
return
|
|
170
166
|
|
|
171
167
|
needs_update, changes = self._check_model_changes(server_model, local_model)
|
|
@@ -250,12 +246,6 @@ class AIModelClient(GrpcClientBase):
|
|
|
250
246
|
local_model.set_main_class(server_model.main_class)
|
|
251
247
|
|
|
252
248
|
def _schedule_download(self, model):
|
|
253
|
-
# Check if already downloading - don't cancel and restart
|
|
254
|
-
if self._is_downloading(model.id):
|
|
255
|
-
logging.debug(f"⏳ Model {model.name} download already in progress, skipping reschedule")
|
|
256
|
-
return
|
|
257
|
-
|
|
258
|
-
# Only cancel if there's a stale download entry
|
|
259
249
|
self._cancel_download(model.id)
|
|
260
250
|
|
|
261
251
|
download_info = DownloadInfo(
|
|
@@ -83,7 +83,7 @@ class WorkerSourceUpdater:
|
|
|
83
83
|
|
|
84
84
|
# Extract details
|
|
85
85
|
resolution = metadata.get("resolution")
|
|
86
|
-
frame_rate = round(metadata.get("frame_rate"), 0) if metadata.get("frame_rate") else None
|
|
86
|
+
frame_rate = int(round(metadata.get("frame_rate"), 0)) if metadata.get("frame_rate") else None
|
|
87
87
|
status_code = "connected" if resolution else "disconnected"
|
|
88
88
|
# .NET Compatible time
|
|
89
89
|
worker_timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z"
|
|
@@ -94,7 +94,12 @@ class WorkerSourceUpdater:
|
|
|
94
94
|
source.frame_rate != frame_rate or
|
|
95
95
|
source.status_code != status_code
|
|
96
96
|
):
|
|
97
|
-
logger.info(
|
|
97
|
+
logger.info(
|
|
98
|
+
f"🔄 [APP] Detected changes in Worker Source ID {source.id}, updating... "
|
|
99
|
+
f"[resolution: {source.resolution} -> {resolution}, "
|
|
100
|
+
f"frame_rate: {source.frame_rate} -> {frame_rate}, "
|
|
101
|
+
f"status: {source.status_code} -> {status_code}]"
|
|
102
|
+
)
|
|
98
103
|
|
|
99
104
|
# Update local database
|
|
100
105
|
source.resolution = resolution
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nedo-vision-worker
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
4
4
|
Summary: Nedo Vision Worker Service Library for AI Vision Processing
|
|
5
5
|
Author-email: Willy Achmat Fauzi <willy.achmat@gmail.com>
|
|
6
6
|
Maintainer-email: Willy Achmat Fauzi <willy.achmat@gmail.com>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
nedo_vision_worker/__init__.py,sha256=
|
|
1
|
+
nedo_vision_worker/__init__.py,sha256=NQp1I-JGYrjehqAzUnYMUAkvzZ5b3Me7MXaLJXEMIOk,203
|
|
2
2
|
nedo_vision_worker/cli.py,sha256=ddWspJmSgVkcUYvRdkvTtMNuMTDvNCqLLuMVU9KE3Ik,7457
|
|
3
3
|
nedo_vision_worker/doctor.py,sha256=wNkpe8gLVd76Y_ViyK2h1ZFdqeSl37MnzZN5frWKu30,48410
|
|
4
4
|
nedo_vision_worker/worker_service.py,sha256=rXUVmyxcJPGhQEZ4UQvjQS5UqlnLBYudHQZCj0dQDxo,10421
|
|
@@ -47,7 +47,7 @@ nedo_vision_worker/repositories/WorkerSourcePipelineDetectionRepository.py,sha25
|
|
|
47
47
|
nedo_vision_worker/repositories/WorkerSourcePipelineRepository.py,sha256=xfmEvgnyt-DdfSApGyFfy0H0dXjFFkjeo4LMr0fVFXU,10053
|
|
48
48
|
nedo_vision_worker/repositories/WorkerSourceRepository.py,sha256=AhAJLAacMFdsOgtQNiu7Pahl1DAGI0T1THHeUlKwQJc,2385
|
|
49
49
|
nedo_vision_worker/repositories/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
50
|
-
nedo_vision_worker/services/AIModelClient.py,sha256=
|
|
50
|
+
nedo_vision_worker/services/AIModelClient.py,sha256=lxRNax6FR-pV0G1NpJnlaqjbQeu3kRolIUNSw1RkoZA,15406
|
|
51
51
|
nedo_vision_worker/services/ConnectionInfoClient.py,sha256=toC9zuY2Hrx1Cwq8Gycy_iFlaG1DvFT4qewlLlitpEQ,2214
|
|
52
52
|
nedo_vision_worker/services/DatasetSourceClient.py,sha256=O5a7onxFl0z47zXaMXWxHAMPuuc-i_vzkd2w5fwrukc,3319
|
|
53
53
|
nedo_vision_worker/services/DirectDeviceToRTMPStreamer.py,sha256=M5ei0cd3_KDhHZp6EkrOowhAY-hAHfAQh9YDVjQtbQI,22278
|
|
@@ -66,7 +66,7 @@ nedo_vision_worker/services/VideoSharingDaemon.py,sha256=hYMjUIKNUVT1qSxuUuHN-7B
|
|
|
66
66
|
nedo_vision_worker/services/VideoStreamClient.py,sha256=QSgUV3LijYrNdnBG1ylABOdUaSatQamfXaqJhAiol9M,7260
|
|
67
67
|
nedo_vision_worker/services/WorkerSourceClient.py,sha256=vDZeCuHL5QQ2-knZ4TOSA59jzmbbThGIwFKKLEZ72Ws,9198
|
|
68
68
|
nedo_vision_worker/services/WorkerSourcePipelineClient.py,sha256=qaBx9T2gWMzpqZaeQdbIeklsXNwzWD5kqgB41rrSkBI,17135
|
|
69
|
-
nedo_vision_worker/services/WorkerSourceUpdater.py,sha256=
|
|
69
|
+
nedo_vision_worker/services/WorkerSourceUpdater.py,sha256=Y7iFYf_m1GFk-mn1B2UNvImMxpPVGQaxSNC63UVVMsQ,8059
|
|
70
70
|
nedo_vision_worker/services/WorkerStatusClient.py,sha256=7kC5EZjEBwWtHOE6UQ29OPCpYnv_6HSuH7Tc0alK_2Q,2531
|
|
71
71
|
nedo_vision_worker/services/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
72
72
|
nedo_vision_worker/util/FFmpegUtil.py,sha256=QnQrzurmllzGb7SlAAYCrzKBUblweoFU-0h-X-32IYg,1829
|
|
@@ -91,8 +91,8 @@ nedo_vision_worker/worker/SystemUsageManager.py,sha256=StutV4UyLUfduYfK20de4SbPd
|
|
|
91
91
|
nedo_vision_worker/worker/VideoStreamWorker.py,sha256=5n6v1PNO7IB-jj_McALLkUP-cBjJoIEw4UiSAs3vTb0,7606
|
|
92
92
|
nedo_vision_worker/worker/WorkerManager.py,sha256=T0vMfhOd7YesgQ9o2w6soeJ6n9chUAcuwcGe7p31xr0,5298
|
|
93
93
|
nedo_vision_worker/worker/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
94
|
-
nedo_vision_worker-1.2.
|
|
95
|
-
nedo_vision_worker-1.2.
|
|
96
|
-
nedo_vision_worker-1.2.
|
|
97
|
-
nedo_vision_worker-1.2.
|
|
98
|
-
nedo_vision_worker-1.2.
|
|
94
|
+
nedo_vision_worker-1.2.5.dist-info/METADATA,sha256=bDjmOToahaHQ2qXapAhvivc1cc2RW5Ng9BLWxGi36jw,14661
|
|
95
|
+
nedo_vision_worker-1.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
96
|
+
nedo_vision_worker-1.2.5.dist-info/entry_points.txt,sha256=LrglS-8nCi8C_PL_pa6uxdgCe879hBETHDVXAckvs-8,60
|
|
97
|
+
nedo_vision_worker-1.2.5.dist-info/top_level.txt,sha256=vgilhlkyD34YsEKkaBabmhIpcKSvF3XpzD2By68L-XI,19
|
|
98
|
+
nedo_vision_worker-1.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|