nebu 0.1.119__tar.gz → 0.1.121__tar.gz

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.
Files changed (36) hide show
  1. {nebu-0.1.119/src/nebu.egg-info → nebu-0.1.121}/PKG-INFO +1 -1
  2. {nebu-0.1.119 → nebu-0.1.121}/pyproject.toml +1 -1
  3. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/processors/consumer.py +24 -0
  4. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/processors/processor.py +5 -4
  5. {nebu-0.1.119 → nebu-0.1.121/src/nebu.egg-info}/PKG-INFO +1 -1
  6. {nebu-0.1.119 → nebu-0.1.121}/LICENSE +0 -0
  7. {nebu-0.1.119 → nebu-0.1.121}/README.md +0 -0
  8. {nebu-0.1.119 → nebu-0.1.121}/setup.cfg +0 -0
  9. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/__init__.py +0 -0
  10. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/auth.py +0 -0
  11. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/builders/builder.py +0 -0
  12. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/builders/models.py +0 -0
  13. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/cache.py +0 -0
  14. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/config.py +0 -0
  15. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/containers/container.py +0 -0
  16. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/containers/models.py +0 -0
  17. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/data.py +0 -0
  18. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/errors.py +0 -0
  19. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/logging.py +0 -0
  20. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/meta.py +0 -0
  21. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/namespaces/models.py +0 -0
  22. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/namespaces/namespace.py +0 -0
  23. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/orign.py +0 -0
  24. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/processors/consumer_health_worker.py +0 -0
  25. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/processors/consumer_process_worker.py +0 -0
  26. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/processors/decorate.py +0 -0
  27. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/processors/default.py +0 -0
  28. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/processors/models.py +0 -0
  29. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/redis/models.py +0 -0
  30. {nebu-0.1.119 → nebu-0.1.121}/src/nebu/services/service.py +0 -0
  31. {nebu-0.1.119 → nebu-0.1.121}/src/nebu.egg-info/SOURCES.txt +0 -0
  32. {nebu-0.1.119 → nebu-0.1.121}/src/nebu.egg-info/dependency_links.txt +0 -0
  33. {nebu-0.1.119 → nebu-0.1.121}/src/nebu.egg-info/requires.txt +0 -0
  34. {nebu-0.1.119 → nebu-0.1.121}/src/nebu.egg-info/top_level.txt +0 -0
  35. {nebu-0.1.119 → nebu-0.1.121}/tests/test_bucket.py +0 -0
  36. {nebu-0.1.119 → nebu-0.1.121}/tests/test_containers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.119
3
+ Version: 0.1.121
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nebu"
3
- version = "0.1.119"
3
+ version = "0.1.121"
4
4
  description = "A globally distributed container runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10.14"
@@ -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}")
@@ -283,6 +283,7 @@ class Processor(Generic[InputType, OutputType]):
283
283
  """
284
284
  Send data to the processor and optionally stream logs in the background.
285
285
  """
286
+ print("sending data to processor: ", data)
286
287
  if (
287
288
  not self.processor
288
289
  or not self.processor.metadata.name
@@ -314,14 +315,14 @@ class Processor(Generic[InputType, OutputType]):
314
315
  response.raise_for_status()
315
316
  raw_response_json = response.json()
316
317
 
318
+ print(f">>> Raw response JSON: {raw_response_json}")
319
+
317
320
  if "error" in raw_response_json:
321
+ print("error in raw_response_json")
318
322
  raise Exception(raw_response_json["error"])
319
323
 
320
- if "status" in raw_response_json:
321
- return raw_response_json
322
-
323
324
  raw_content = raw_response_json.get("content")
324
- logger.debug(f">>> Raw content: {raw_content}")
325
+ print(f">>> Raw content: {raw_content}")
325
326
 
326
327
  # --- Fetch Logs (if requested and not already running) ---
327
328
  if logs:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.119
3
+ Version: 0.1.121
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes