fred-oss 0.9.0__tar.gz → 0.10.0__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 (41) hide show
  1. {fred_oss-0.9.0/src/main/fred_oss.egg-info → fred_oss-0.10.0}/PKG-INFO +1 -1
  2. fred_oss-0.10.0/src/main/fred/version +1 -0
  3. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/runner/client.py +3 -0
  4. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/runner/handler.py +11 -11
  5. {fred_oss-0.9.0 → fred_oss-0.10.0/src/main/fred_oss.egg-info}/PKG-INFO +1 -1
  6. fred_oss-0.9.0/src/main/fred/version +0 -1
  7. {fred_oss-0.9.0 → fred_oss-0.10.0}/MANIFEST.in +0 -0
  8. {fred_oss-0.9.0 → fred_oss-0.10.0}/NOTICE.txt +0 -0
  9. {fred_oss-0.9.0 → fred_oss-0.10.0}/README.md +0 -0
  10. {fred_oss-0.9.0 → fred_oss-0.10.0}/requirements.txt +0 -0
  11. {fred_oss-0.9.0 → fred_oss-0.10.0}/setup.cfg +0 -0
  12. {fred_oss-0.9.0 → fred_oss-0.10.0}/setup.py +0 -0
  13. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/__init__.py +0 -0
  14. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/__main__.py +0 -0
  15. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/interface.py +0 -0
  16. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/main.py +0 -0
  17. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/__init__.py +0 -0
  18. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/cli_ext.py +0 -0
  19. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtime.py +0 -0
  20. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/__init__.py +0 -0
  21. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/scanner.py +0 -0
  22. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/sync.py +0 -0
  23. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/wrappers/__init__.py +0 -0
  24. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py +0 -0
  25. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/runpod/__init__.py +0 -0
  26. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/runpod/cli_ext.py +0 -0
  27. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/runpod/helper.py +0 -0
  28. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/maturity.py +0 -0
  29. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/settings.py +0 -0
  30. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/utils/__init__.py +0 -0
  31. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/utils/dateops.py +0 -0
  32. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/utils/runtime.py +0 -0
  33. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/version.py +0 -0
  34. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/__init__.py +0 -0
  35. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/interface.py +0 -0
  36. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/runner/__init__.py +0 -0
  37. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/SOURCES.txt +0 -0
  38. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/dependency_links.txt +0 -0
  39. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/entry_points.txt +0 -0
  40. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/requires.txt +0 -0
  41. {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fred-oss
3
- Version: 0.9.0
3
+ Version: 0.10.0
4
4
  Summary: FREDOSS
5
5
  Home-page: https://fred.fahera.mx
6
6
  Author: Fahera Research, Education, and Development
@@ -0,0 +1 @@
1
+ 0.10.0
@@ -23,7 +23,10 @@ class RunnerClient:
23
23
  redis_configs = {
24
24
  "host": kwargs.get("host") or get_environ_variable(name="REDIS_HOST", default="localhost"),
25
25
  "port": int(kwargs.get("port") or get_environ_variable(name="REDIS_PORT", default=6379)),
26
+ "password": get_environ_variable(name="REDIS_PASSWORD", default=None),
26
27
  "db": int(kwargs.get("db") or get_environ_variable(name="REDIS_DB", default=0)),
28
+ "decode_responses": True,
29
+ **kwargs.pop("redis_configs", {}),
27
30
  }
28
31
  redis_instance = Redis(**redis_configs)
29
32
  req_queue = kwargs.get("request_queue") or get_environ_variable(name="FRD_RUNNER_REQUEST_QUEUE", default=None) or (
@@ -27,14 +27,14 @@ class RunnerHandler(HandlerInterface):
27
27
  lifespan = payload.get("lifetime", 3600) # Default to 1 hour if not specified
28
28
  timeout = payload.get("timeout", 30) # Default to 30 seconds if not specified
29
29
  # Get Redis connection details from payload or environment variables
30
- redis_configs = payload.pop(
31
- "redis_configs",
32
- {
33
- "host": get_environ_variable(name="REDIS_HOST", default="localhost"),
34
- "port": int(get_environ_variable(name="REDIS_PORT", default=6379)),
35
- "db": int(get_environ_variable(name="REDIS_DB", default=0)),
36
- }
37
- )
30
+ redis_configs = {
31
+ "host": get_environ_variable(name="REDIS_HOST", default="localhost"),
32
+ "port": int(get_environ_variable(name="REDIS_PORT", default=6379)),
33
+ "password": get_environ_variable(name="REDIS_PASSWORD", default=None),
34
+ "db": int(get_environ_variable(name="REDIS_DB", default=0)),
35
+ "decode_responses": True,
36
+ **payload.pop("redis_configs", {}),
37
+ }
38
38
  # Connect to Redis
39
39
  redis = Redis(**redis_configs)
40
40
  req_queue = payload.pop("redis_request_queue", None) or get_environ_variable(name="FRD_RUNNER_REQUEST_QUEUE", default=None) or (
@@ -64,16 +64,16 @@ class RunnerHandler(HandlerInterface):
64
64
  break
65
65
  # Fetch item from Redis queue
66
66
  try:
67
- item_raw = redis.rpop(req_queue)
67
+ item_str = redis.rpop(req_queue)
68
68
  except Exception as e:
69
69
  logger.error(f"Error fetching item from Redis queue '{req_queue}': {e}")
70
70
  continue
71
71
  # If no item, iterate again
72
- if not item_raw:
72
+ if not item_str:
73
73
  continue
74
74
  try:
75
75
  # Handle special signals
76
- match (item_str := item_raw.decode("utf-8")):
76
+ match item_str:
77
77
  case "STOP" | "SHUTDOWN" | "TERMINATE":
78
78
  logger.info("Received STOP signal; exiting runner loop.")
79
79
  break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fred-oss
3
- Version: 0.9.0
3
+ Version: 0.10.0
4
4
  Summary: FREDOSS
5
5
  Home-page: https://fred.fahera.mx
6
6
  Author: Fahera Research, Education, and Development
@@ -1 +0,0 @@
1
- 0.9.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes