nebu 0.1.49__py3-none-any.whl → 0.1.51__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 +2 -0
- nebu/processors/decorate.py +3 -3
- {nebu-0.1.49.dist-info → nebu-0.1.51.dist-info}/METADATA +1 -1
- {nebu-0.1.49.dist-info → nebu-0.1.51.dist-info}/RECORD +7 -7
- {nebu-0.1.49.dist-info → nebu-0.1.51.dist-info}/WHEEL +0 -0
- {nebu-0.1.49.dist-info → nebu-0.1.51.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.49.dist-info → nebu-0.1.51.dist-info}/top_level.txt +0 -0
nebu/processors/consumer.py
CHANGED
@@ -374,6 +374,7 @@ def process_message(message_id: str, message_data: Dict[str, str]) -> None:
|
|
374
374
|
created_at = (
|
375
375
|
datetime.fromisoformat(created_at_str)
|
376
376
|
if created_at_str
|
377
|
+
and isinstance(created_at_str, str) # Check type explicitly
|
377
378
|
else datetime.now(timezone.utc)
|
378
379
|
)
|
379
380
|
except ValueError:
|
@@ -651,6 +652,7 @@ consumer_name = f"consumer-{os.getpid()}-{socket.gethostname()}" # More unique
|
|
651
652
|
|
652
653
|
try:
|
653
654
|
while True:
|
655
|
+
print("reading from stream...")
|
654
656
|
try:
|
655
657
|
# --- Check for Code Updates ---
|
656
658
|
if entrypoint_abs_path: # Should always be set after init
|
nebu/processors/decorate.py
CHANGED
@@ -501,8 +501,8 @@ def processor(
|
|
501
501
|
"Missing required fields (access_key_id, secret_access_key, s3_base_uri) in S3 token response."
|
502
502
|
)
|
503
503
|
|
504
|
-
# Construct unique S3 path: s3://<base_bucket>/<base_prefix>/<code_prefix>/<processor_name
|
505
|
-
unique_suffix = f"{
|
504
|
+
# Construct unique S3 path: s3://<base_bucket>/<base_prefix>/<code_prefix>/<namespace>/<processor_name>/
|
505
|
+
unique_suffix = f"{effective_namespace}/{processor_name}"
|
506
506
|
parsed_base = urlparse(s3_base_uri)
|
507
507
|
if not parsed_base.scheme == "s3" or not parsed_base.netloc:
|
508
508
|
raise ValueError(f"Invalid s3_base_uri received: {s3_base_uri}")
|
@@ -545,7 +545,7 @@ def processor(
|
|
545
545
|
s3_bucket.sync(
|
546
546
|
source=func_dir,
|
547
547
|
destination=s3_destination_uri,
|
548
|
-
delete=
|
548
|
+
delete=True,
|
549
549
|
dry_run=False,
|
550
550
|
)
|
551
551
|
print("[DEBUG Decorator] S3 code upload completed.")
|
@@ -10,16 +10,16 @@ nebu/containers/container.py,sha256=yb7KaPTVXnEEAlrpdlUi4HNqF6P7z9bmwAILGlq6iqU,
|
|
10
10
|
nebu/containers/decorator.py,sha256=uFtzlAXRHYZECJ-NPusY7oN9GXvdHrHDd_JNrIGr8aQ,3244
|
11
11
|
nebu/containers/models.py,sha256=0j6NGy4yto-enRDh_4JH_ZTbHrLdSpuMOqNQPnIrwC4,6815
|
12
12
|
nebu/containers/server.py,sha256=yFa2Y9PzBn59E1HftKiv0iapPonli2rbGAiU6r-wwe0,2513
|
13
|
-
nebu/processors/consumer.py,sha256=
|
14
|
-
nebu/processors/decorate.py,sha256=
|
13
|
+
nebu/processors/consumer.py,sha256=xKrvJ7gcvrN1N2wVZhfs1sAhCOsms_L1UmWvpa90jMI,33670
|
14
|
+
nebu/processors/decorate.py,sha256=wfCGSjXArqykWlCzuaXiid3hyCw736HM_iFCaZIDOYU,46533
|
15
15
|
nebu/processors/default.py,sha256=W4slJenG59rvyTlJ7gRp58eFfXcNOTT2Hfi6zzJAobI,365
|
16
16
|
nebu/processors/models.py,sha256=y40HoW-MEzDWB2dm_tsYlUy3Nf3s6eiLC0iGO9BoNog,3956
|
17
17
|
nebu/processors/processor.py,sha256=cptZEN9ZGcaoFNreaw3BkwV0qKHvjP9b4nNxlQjFT3s,15405
|
18
18
|
nebu/processors/remote.py,sha256=TeAIPGEMqnDIb7H1iett26IEZrBlcbPB_-DSm6jcH1E,1285
|
19
19
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
20
20
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
|
-
nebu-0.1.
|
22
|
-
nebu-0.1.
|
23
|
-
nebu-0.1.
|
24
|
-
nebu-0.1.
|
25
|
-
nebu-0.1.
|
21
|
+
nebu-0.1.51.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
22
|
+
nebu-0.1.51.dist-info/METADATA,sha256=oJlfFCEwfoieRQERE7vj4-OxzadUGE1B6aEAV5T1R-w,1731
|
23
|
+
nebu-0.1.51.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
24
|
+
nebu-0.1.51.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
25
|
+
nebu-0.1.51.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|