nebu 0.1.119__py3-none-any.whl → 0.1.120__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 +24 -0
- {nebu-0.1.119.dist-info → nebu-0.1.120.dist-info}/METADATA +1 -1
- {nebu-0.1.119.dist-info → nebu-0.1.120.dist-info}/RECORD +6 -6
- {nebu-0.1.119.dist-info → nebu-0.1.120.dist-info}/WHEEL +0 -0
- {nebu-0.1.119.dist-info → nebu-0.1.120.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.119.dist-info → nebu-0.1.120.dist-info}/top_level.txt +0 -0
nebu/processors/consumer.py
CHANGED
@@ -477,6 +477,30 @@ def check_health_subprocess() -> bool:
|
|
477
477
|
print(f"[DEBUG] health_subprocess is None")
|
478
478
|
return False
|
479
479
|
|
480
|
+
# Cat the health subprocess log file
|
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
|
+
|
480
504
|
# Check if process is still running
|
481
505
|
poll_result = health_subprocess.poll()
|
482
506
|
print(f"[DEBUG] health_subprocess.poll() returned: {poll_result}")
|
@@ -13,7 +13,7 @@ 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=19f7BpNZXmeJSDmYmfX8mVFUZzd_vUI5bMI1alpDIvc,78483
|
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
|
@@ -22,8 +22,8 @@ nebu/processors/models.py,sha256=8-TmKha2_QAnPlXcZxYjrCSPDCX7FFcMDMcHK77jK0U,422
|
|
22
22
|
nebu/processors/processor.py,sha256=APzvh4wB97pazl0SJewJEfi8sjQzQAMXZjtONNjaF_0,26081
|
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.120.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
26
|
+
nebu-0.1.120.dist-info/METADATA,sha256=SKNf4PIhc1Stx6bHBxGQ7CbZCNsK34FntOaHgJiZRQ0,1798
|
27
|
+
nebu-0.1.120.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
28
|
+
nebu-0.1.120.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
29
|
+
nebu-0.1.120.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|