nebu 0.1.78__py3-none-any.whl → 0.1.79__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/decorate.py +8 -4
- {nebu-0.1.78.dist-info → nebu-0.1.79.dist-info}/METADATA +1 -1
- {nebu-0.1.78.dist-info → nebu-0.1.79.dist-info}/RECORD +6 -6
- {nebu-0.1.78.dist-info → nebu-0.1.79.dist-info}/WHEEL +0 -0
- {nebu-0.1.78.dist-info → nebu-0.1.79.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.78.dist-info → nebu-0.1.79.dist-info}/top_level.txt +0 -0
nebu/processors/decorate.py
CHANGED
@@ -390,7 +390,8 @@ def processor(
|
|
390
390
|
ports: Optional[List[V1PortRequest]] = None,
|
391
391
|
proxy_port: Optional[int] = None,
|
392
392
|
health_check: Optional[V1ContainerHealthCheck] = None,
|
393
|
-
execution_mode: str = "inline",
|
393
|
+
execution_mode: str = "inline",
|
394
|
+
config: Optional[GlobalConfig] = None,
|
394
395
|
):
|
395
396
|
def decorator(
|
396
397
|
func: Callable[[Any], Any],
|
@@ -410,6 +411,9 @@ def processor(
|
|
410
411
|
processor_name = func.__name__
|
411
412
|
all_volumes = volumes or [] # Initialize volumes list
|
412
413
|
|
414
|
+
# Use a local variable for config resolution
|
415
|
+
effective_config = config
|
416
|
+
|
413
417
|
# --- Get Decorated Function File Path and Directory ---
|
414
418
|
print("[DEBUG Decorator] Getting source file path for decorated function...")
|
415
419
|
func_file_path: Optional[str] = None
|
@@ -445,9 +449,9 @@ def processor(
|
|
445
449
|
# --- Get API Key ---
|
446
450
|
print("[DEBUG Decorator] Loading Nebu configuration...")
|
447
451
|
try:
|
448
|
-
|
449
|
-
|
450
|
-
current_server =
|
452
|
+
if not effective_config:
|
453
|
+
effective_config = GlobalConfig.read()
|
454
|
+
current_server = effective_config.get_current_server_config()
|
451
455
|
if not current_server or not current_server.api_key:
|
452
456
|
raise ValueError("Nebu server configuration or API key not found.")
|
453
457
|
api_key = current_server.api_key
|
@@ -16,15 +16,15 @@ nebu/namespaces/models.py,sha256=EqUOpzhVBhvJw2P92ONDUbIgC31M9jMmcaG5vyOrsWg,497
|
|
16
16
|
nebu/namespaces/namespace.py,sha256=Q_EDH7BgQrTkaDh_l4tbo22qpq-uARfIk8ZPBLjITGY,4967
|
17
17
|
nebu/processors/consumer.py,sha256=nWJmlTwJxfadMEQQwzwOJNPCAkcxqIzOpshMMbnfa-o,43617
|
18
18
|
nebu/processors/consumer_process_worker.py,sha256=tF5KU3Rnmzfc3Y0cM8J5nwGg1cJMe-ry0FmMSgGvXrY,31765
|
19
|
-
nebu/processors/decorate.py,sha256=
|
19
|
+
nebu/processors/decorate.py,sha256=U-NjFszyfKD6ACEyPJogFCbOPsfRYJUgGobLzfaHwD8,54766
|
20
20
|
nebu/processors/default.py,sha256=W4slJenG59rvyTlJ7gRp58eFfXcNOTT2Hfi6zzJAobI,365
|
21
21
|
nebu/processors/models.py,sha256=y40HoW-MEzDWB2dm_tsYlUy3Nf3s6eiLC0iGO9BoNog,3956
|
22
22
|
nebu/processors/processor.py,sha256=OgEK8Fz0ehSe_VFiNsxweVKZIckhgVvQQ11NNffYZqA,15848
|
23
23
|
nebu/processors/remote.py,sha256=TeAIPGEMqnDIb7H1iett26IEZrBlcbPB_-DSm6jcH1E,1285
|
24
24
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
25
25
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
-
nebu-0.1.
|
27
|
-
nebu-0.1.
|
28
|
-
nebu-0.1.
|
29
|
-
nebu-0.1.
|
30
|
-
nebu-0.1.
|
26
|
+
nebu-0.1.79.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
27
|
+
nebu-0.1.79.dist-info/METADATA,sha256=CGL9pnRUrW4gx4A6tIaOgxgC3WRlxUSANUHJcBuhLPc,1731
|
28
|
+
nebu-0.1.79.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
29
|
+
nebu-0.1.79.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
30
|
+
nebu-0.1.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|