nebu 0.1.100__py3-none-any.whl → 0.1.103__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/processor.py +5 -5
- {nebu-0.1.100.dist-info → nebu-0.1.103.dist-info}/METADATA +1 -1
- {nebu-0.1.100.dist-info → nebu-0.1.103.dist-info}/RECORD +6 -6
- {nebu-0.1.100.dist-info → nebu-0.1.103.dist-info}/WHEEL +0 -0
- {nebu-0.1.100.dist-info → nebu-0.1.103.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.100.dist-info → nebu-0.1.103.dist-info}/top_level.txt +0 -0
nebu/processors/processor.py
CHANGED
@@ -2,7 +2,7 @@ import json
|
|
2
2
|
import threading
|
3
3
|
import time
|
4
4
|
import uuid
|
5
|
-
from typing import Any, Dict, Generic, List, Optional, TypeVar
|
5
|
+
from typing import Any, Dict, Generic, List, Optional, TypeVar
|
6
6
|
|
7
7
|
import requests
|
8
8
|
from pydantic import BaseModel
|
@@ -213,7 +213,7 @@ class Processor(Generic[InputType, OutputType]):
|
|
213
213
|
|
214
214
|
# --- Wait for health check if requested ---
|
215
215
|
if wait_for_healthy:
|
216
|
-
self.
|
216
|
+
self.wait_for_health_check()
|
217
217
|
|
218
218
|
def __call__(
|
219
219
|
self,
|
@@ -442,8 +442,8 @@ class Processor(Generic[InputType, OutputType]):
|
|
442
442
|
else:
|
443
443
|
logger.info(f"No active log stream to stop for {self.name}.")
|
444
444
|
|
445
|
-
def
|
446
|
-
self, timeout: float =
|
445
|
+
def wait_for_health_check(
|
446
|
+
self, timeout: float = 3600.0, retry_interval: float = 5.0
|
447
447
|
) -> None:
|
448
448
|
"""
|
449
449
|
Wait for the processor to respond to health checks.
|
@@ -472,7 +472,7 @@ class Processor(Generic[InputType, OutputType]):
|
|
472
472
|
|
473
473
|
# Send health check and wait for response
|
474
474
|
response = self.send(
|
475
|
-
data=
|
475
|
+
data=health_check_data, # type: ignore
|
476
476
|
wait=True,
|
477
477
|
timeout=30.0, # Short timeout for individual health check
|
478
478
|
)
|
@@ -18,11 +18,11 @@ nebu/processors/consumer_process_worker.py,sha256=h--eNFKaLbUayxn88mB8oGGdrU2liE
|
|
18
18
|
nebu/processors/decorate.py,sha256=AfHVCoNbW7RymccF5ewleEL-GlMiqVH1-t9bCmD60rk,58654
|
19
19
|
nebu/processors/default.py,sha256=cy4ETMdbdRGkrvbYec1o60h7mGDlGN5JsuUph0ENtDU,364
|
20
20
|
nebu/processors/models.py,sha256=g4B1t6Rgoy-NUEHBLeQc0EENzHXLDlWSio8Muv7cTDU,4093
|
21
|
-
nebu/processors/processor.py,sha256=
|
21
|
+
nebu/processors/processor.py,sha256=vbafqawdZhh5VRoBE5C5wRR_32iSyzoDTqK7qsNQvaM,19242
|
22
22
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
23
23
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
-
nebu-0.1.
|
25
|
-
nebu-0.1.
|
26
|
-
nebu-0.1.
|
27
|
-
nebu-0.1.
|
28
|
-
nebu-0.1.
|
24
|
+
nebu-0.1.103.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
25
|
+
nebu-0.1.103.dist-info/METADATA,sha256=PSKpznZOgx6Ua0nIdj532s-Qq1F6n91W53CtBWH8sYI,1798
|
26
|
+
nebu-0.1.103.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
27
|
+
nebu-0.1.103.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
28
|
+
nebu-0.1.103.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|