nebu 0.1.38__py3-none-any.whl → 0.1.39__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/cache.py +3 -1
- nebu/processors/consumer.py +3 -0
- {nebu-0.1.38.dist-info → nebu-0.1.39.dist-info}/METADATA +1 -1
- {nebu-0.1.38.dist-info → nebu-0.1.39.dist-info}/RECORD +7 -7
- {nebu-0.1.38.dist-info → nebu-0.1.39.dist-info}/WHEEL +0 -0
- {nebu-0.1.38.dist-info → nebu-0.1.39.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.38.dist-info → nebu-0.1.39.dist-info}/top_level.txt +0 -0
nebu/cache.py
CHANGED
@@ -28,10 +28,11 @@ class Cache:
|
|
28
28
|
Also checks for REDIS_URL and prefers that if set.
|
29
29
|
"""
|
30
30
|
redis_url = os.environ.get("REDIS_URL")
|
31
|
+
print("REDIS_URL: ", redis_url)
|
31
32
|
namespace = os.environ.get("NEBU_NAMESPACE")
|
32
33
|
if not namespace:
|
33
34
|
raise ValueError("NEBU_NAMESPACE environment variable is not set")
|
34
|
-
|
35
|
+
print("NAMESPACE: ", namespace)
|
35
36
|
self.redis_client = None
|
36
37
|
connection_info = ""
|
37
38
|
|
@@ -57,6 +58,7 @@ class Cache:
|
|
57
58
|
print(f"Successfully connected to Redis using {connection_info}")
|
58
59
|
|
59
60
|
self.prefix = f"cache:{namespace}"
|
61
|
+
print("using prefix", self.prefix)
|
60
62
|
except Exception as e:
|
61
63
|
print(f"Error connecting to Redis: {e}")
|
62
64
|
# Ensure client is None if connection fails at any point
|
nebu/processors/consumer.py
CHANGED
@@ -221,6 +221,9 @@ try:
|
|
221
221
|
try:
|
222
222
|
exec(init_func_source, local_namespace)
|
223
223
|
init_function = local_namespace[init_func_name]
|
224
|
+
print(
|
225
|
+
f"[Consumer] Environment before calling init_func {init_func_name}: {os.environ}"
|
226
|
+
)
|
224
227
|
init_function() # Call the function
|
225
228
|
print(f"Successfully executed init_func: {init_func_name}")
|
226
229
|
except Exception as e:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
nebu/__init__.py,sha256=5sepbzdAdoA_8TIxws60S4ugFY1apQd_savzn20a4cY,465
|
2
2
|
nebu/adapter.py,sha256=X9Lc0-pm4U6v7UDgOd_RuxJqENqAO8Si4jrwGYTsMGI,418
|
3
3
|
nebu/auth.py,sha256=N_v6SPFD9HU_UoRDTaouH03g2Hmo9C-xxqInE1FweXE,1471
|
4
|
-
nebu/cache.py,sha256=
|
4
|
+
nebu/cache.py,sha256=nKssfJ4mqkxkzoU776cr7RjOSbKoueqNvmHvQ0Ufj70,3929
|
5
5
|
nebu/config.py,sha256=aZzQltkobtOLHFCGcIkpKoE3ITn3Z11Dp0E72w84TA0,5769
|
6
6
|
nebu/data.py,sha256=kIH9-JJ1-iO7P2t28bku6Gn0Y5tgQszGeTW_rpmO03A,38725
|
7
7
|
nebu/meta.py,sha256=CzFHMND9seuewzq9zNNx9WTr6JvrCBExe7BLqDSr7lM,745
|
@@ -11,7 +11,7 @@ nebu/containers/container.py,sha256=yb7KaPTVXnEEAlrpdlUi4HNqF6P7z9bmwAILGlq6iqU,
|
|
11
11
|
nebu/containers/decorator.py,sha256=uFtzlAXRHYZECJ-NPusY7oN9GXvdHrHDd_JNrIGr8aQ,3244
|
12
12
|
nebu/containers/models.py,sha256=0j6NGy4yto-enRDh_4JH_ZTbHrLdSpuMOqNQPnIrwC4,6815
|
13
13
|
nebu/containers/server.py,sha256=yFa2Y9PzBn59E1HftKiv0iapPonli2rbGAiU6r-wwe0,2513
|
14
|
-
nebu/processors/consumer.py,sha256=
|
14
|
+
nebu/processors/consumer.py,sha256=vVbA6PdgkTKI5iqCDSnHO0dtbyFPiK7_1ys3ph7xPrk,20786
|
15
15
|
nebu/processors/decorate.py,sha256=KZ43vOPzl3HVPB9P3QX6U94yTBnVi7ISoXQhUuEMO7g,38156
|
16
16
|
nebu/processors/default.py,sha256=W4slJenG59rvyTlJ7gRp58eFfXcNOTT2Hfi6zzJAobI,365
|
17
17
|
nebu/processors/models.py,sha256=y40HoW-MEzDWB2dm_tsYlUy3Nf3s6eiLC0iGO9BoNog,3956
|
@@ -19,8 +19,8 @@ nebu/processors/processor.py,sha256=068hLQKapWabNlhb_DtzqAJ7N7MGdr5UcjfZrb_MkFo,
|
|
19
19
|
nebu/processors/remote.py,sha256=TeAIPGEMqnDIb7H1iett26IEZrBlcbPB_-DSm6jcH1E,1285
|
20
20
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
21
21
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
nebu-0.1.
|
23
|
-
nebu-0.1.
|
24
|
-
nebu-0.1.
|
25
|
-
nebu-0.1.
|
26
|
-
nebu-0.1.
|
22
|
+
nebu-0.1.39.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
23
|
+
nebu-0.1.39.dist-info/METADATA,sha256=aAJh9bd6ya9FoUBkqpxnAsk6T6Vwtwtz6g5hhMl28PY,1786
|
24
|
+
nebu-0.1.39.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
25
|
+
nebu-0.1.39.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
26
|
+
nebu-0.1.39.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|