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.
- {fred_oss-0.9.0/src/main/fred_oss.egg-info → fred_oss-0.10.0}/PKG-INFO +1 -1
- fred_oss-0.10.0/src/main/fred/version +1 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/runner/client.py +3 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/runner/handler.py +11 -11
- {fred_oss-0.9.0 → fred_oss-0.10.0/src/main/fred_oss.egg-info}/PKG-INFO +1 -1
- fred_oss-0.9.0/src/main/fred/version +0 -1
- {fred_oss-0.9.0 → fred_oss-0.10.0}/MANIFEST.in +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/NOTICE.txt +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/README.md +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/requirements.txt +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/setup.cfg +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/setup.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/__main__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/interface.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/cli/main.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/cli_ext.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtime.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/scanner.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/sync.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/wrappers/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/runpod/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/runpod/cli_ext.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/runpod/helper.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/maturity.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/settings.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/utils/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/utils/dateops.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/utils/runtime.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/version.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/interface.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/worker/runner/__init__.py +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/SOURCES.txt +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/dependency_links.txt +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/entry_points.txt +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/requires.txt +0 -0
- {fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred_oss.egg-info/top_level.txt +0 -0
|
@@ -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 =
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
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
|
|
72
|
+
if not item_str:
|
|
73
73
|
continue
|
|
74
74
|
try:
|
|
75
75
|
# Handle special signals
|
|
76
|
-
match
|
|
76
|
+
match item_str:
|
|
77
77
|
case "STOP" | "SHUTDOWN" | "TERMINATE":
|
|
78
78
|
logger.info("Received STOP signal; exiting runner loop.")
|
|
79
79
|
break
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/__init__.py
RENAMED
|
File without changes
|
{fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/runtimes/scanner.py
RENAMED
|
File without changes
|
|
File without changes
|
{fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/wrappers/__init__.py
RENAMED
|
File without changes
|
{fred_oss-0.9.0 → fred_oss-0.10.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|