nebu 0.1.120__py3-none-any.whl → 0.1.121__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.
- nebu/processors/consumer.py +22 -22
- nebu/processors/processor.py +5 -4
- {nebu-0.1.120.dist-info → nebu-0.1.121.dist-info}/METADATA +1 -1
- {nebu-0.1.120.dist-info → nebu-0.1.121.dist-info}/RECORD +7 -7
- {nebu-0.1.120.dist-info → nebu-0.1.121.dist-info}/WHEEL +0 -0
- {nebu-0.1.120.dist-info → nebu-0.1.121.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.120.dist-info → nebu-0.1.121.dist-info}/top_level.txt +0 -0
nebu/processors/consumer.py
CHANGED
@@ -478,28 +478,28 @@ def check_health_subprocess() -> bool:
|
|
478
478
|
return False
|
479
479
|
|
480
480
|
# Cat the health subprocess log file
|
481
|
-
try:
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
except Exception as e:
|
502
|
-
|
481
|
+
# try:
|
482
|
+
# log_dir = os.path.join(os.getcwd(), "logs")
|
483
|
+
# log_file = os.path.join(log_dir, f"health_consumer_{health_subprocess.pid}.log")
|
484
|
+
|
485
|
+
# if os.path.exists(log_file):
|
486
|
+
# print(
|
487
|
+
# f"[DEBUG] === HEALTH SUBPROCESS LOG (PID {health_subprocess.pid}) ==="
|
488
|
+
# )
|
489
|
+
# try:
|
490
|
+
# with open(log_file, "r") as f:
|
491
|
+
# log_contents = f.read()
|
492
|
+
# if log_contents.strip():
|
493
|
+
# print(log_contents)
|
494
|
+
# else:
|
495
|
+
# print("[DEBUG] Log file is empty")
|
496
|
+
# except Exception as e:
|
497
|
+
# print(f"[DEBUG] Error reading log file {log_file}: {e}")
|
498
|
+
# print(f"[DEBUG] === END HEALTH SUBPROCESS LOG ===")
|
499
|
+
# else:
|
500
|
+
# print(f"[DEBUG] Health subprocess log file not found: {log_file}")
|
501
|
+
# except Exception as e:
|
502
|
+
# print(f"[DEBUG] Error accessing health subprocess log: {e}")
|
503
503
|
|
504
504
|
# Check if process is still running
|
505
505
|
poll_result = health_subprocess.poll()
|
nebu/processors/processor.py
CHANGED
@@ -283,6 +283,7 @@ class Processor(Generic[InputType, OutputType]):
|
|
283
283
|
"""
|
284
284
|
Send data to the processor and optionally stream logs in the background.
|
285
285
|
"""
|
286
|
+
print("sending data to processor: ", data)
|
286
287
|
if (
|
287
288
|
not self.processor
|
288
289
|
or not self.processor.metadata.name
|
@@ -314,14 +315,14 @@ class Processor(Generic[InputType, OutputType]):
|
|
314
315
|
response.raise_for_status()
|
315
316
|
raw_response_json = response.json()
|
316
317
|
|
318
|
+
print(f">>> Raw response JSON: {raw_response_json}")
|
319
|
+
|
317
320
|
if "error" in raw_response_json:
|
321
|
+
print("error in raw_response_json")
|
318
322
|
raise Exception(raw_response_json["error"])
|
319
323
|
|
320
|
-
if "status" in raw_response_json:
|
321
|
-
return raw_response_json
|
322
|
-
|
323
324
|
raw_content = raw_response_json.get("content")
|
324
|
-
|
325
|
+
print(f">>> Raw content: {raw_content}")
|
325
326
|
|
326
327
|
# --- Fetch Logs (if requested and not already running) ---
|
327
328
|
if logs:
|
@@ -13,17 +13,17 @@ nebu/containers/container.py,sha256=Mrh_gvMsTvDkj3CwpqIPzJ72IMw0gQIg64y548vq0yg,
|
|
13
13
|
nebu/containers/models.py,sha256=0j6NGy4yto-enRDh_4JH_ZTbHrLdSpuMOqNQPnIrwC4,6815
|
14
14
|
nebu/namespaces/models.py,sha256=EqUOpzhVBhvJw2P92ONDUbIgC31M9jMmcaG5vyOrsWg,497
|
15
15
|
nebu/namespaces/namespace.py,sha256=oeZyGqsIGIrppyjif1ZONsdTmqRgd9oSLFE1BChXTTE,5247
|
16
|
-
nebu/processors/consumer.py,sha256=
|
16
|
+
nebu/processors/consumer.py,sha256=zD9lCwPhwnYRIpisucvs7kymsN1eLDWSE_mAKSJqfTE,78525
|
17
17
|
nebu/processors/consumer_health_worker.py,sha256=7qT3Iu3aUoPqg0Doy-MWN7RMpoS1yXljLMaF3QikF2M,14483
|
18
18
|
nebu/processors/consumer_process_worker.py,sha256=h--eNFKaLbUayxn88mB8oGGdrU2liE1dnwm_TPlewX8,36960
|
19
19
|
nebu/processors/decorate.py,sha256=5p9pQrk_H8-Fj0UjsgSVCYx7Jk7KFuhMZtNhkKvpmkQ,61306
|
20
20
|
nebu/processors/default.py,sha256=cy4ETMdbdRGkrvbYec1o60h7mGDlGN5JsuUph0ENtDU,364
|
21
21
|
nebu/processors/models.py,sha256=8-TmKha2_QAnPlXcZxYjrCSPDCX7FFcMDMcHK77jK0U,4223
|
22
|
-
nebu/processors/processor.py,sha256=
|
22
|
+
nebu/processors/processor.py,sha256=wos5BkNZUVaY5ifT7yeDLbJkdfeloJ7hRuK9P18LU7U,26155
|
23
23
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
24
24
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
|
-
nebu-0.1.
|
26
|
-
nebu-0.1.
|
27
|
-
nebu-0.1.
|
28
|
-
nebu-0.1.
|
29
|
-
nebu-0.1.
|
25
|
+
nebu-0.1.121.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
26
|
+
nebu-0.1.121.dist-info/METADATA,sha256=yKsxf5jq5kAs-24UQRcIgLFlpCupGkWmTXr9SHIVotU,1798
|
27
|
+
nebu-0.1.121.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
28
|
+
nebu-0.1.121.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
29
|
+
nebu-0.1.121.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|