fred-oss 0.6.0__tar.gz → 0.7.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.6.0/src/main/fred_oss.egg-info → fred_oss-0.7.0}/PKG-INFO +1 -1
- fred_oss-0.7.0/src/main/fred/version +1 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/worker/interface.py +16 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0/src/main/fred_oss.egg-info}/PKG-INFO +1 -1
- fred_oss-0.6.0/src/main/fred/version +0 -1
- {fred_oss-0.6.0 → fred_oss-0.7.0}/MANIFEST.in +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/NOTICE.txt +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/README.md +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/requirements.txt +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/setup.cfg +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/setup.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/cli/__init__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/cli/__main__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/cli/interface.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/cli/main.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/__init__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/cli_ext.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/runtime.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/runtimes/__init__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/runtimes/scanner.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/runtimes/sync.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/wrappers/__init__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/runpod/__init__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/runpod/cli_ext.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/runpod/helper.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/maturity.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/settings.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/utils/__init__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/utils/dateops.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/utils/runtime.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/version.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/worker/__init__.py +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred_oss.egg-info/SOURCES.txt +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred_oss.egg-info/dependency_links.txt +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred_oss.egg-info/entry_points.txt +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred_oss.egg-info/requires.txt +0 -0
- {fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred_oss.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.7.0
|
|
@@ -157,6 +157,13 @@ class HandlerInterface:
|
|
|
157
157
|
ok = True
|
|
158
158
|
response = None
|
|
159
159
|
# Determine action based on 'fred_worker_action' in payload
|
|
160
|
+
propagate_worker_error = int(payload.pop(
|
|
161
|
+
"propagate_worker_error",
|
|
162
|
+
get_environ_variable(
|
|
163
|
+
"FRD_PROPAGATE_WORKER_ERROR",
|
|
164
|
+
default="0"
|
|
165
|
+
)
|
|
166
|
+
))
|
|
160
167
|
match (worker_action := payload.pop("fred_worker_action", "handler")):
|
|
161
168
|
case "telemetry":
|
|
162
169
|
# Collect and return telemetry data
|
|
@@ -170,6 +177,8 @@ class HandlerInterface:
|
|
|
170
177
|
except Exception as e:
|
|
171
178
|
ok = False
|
|
172
179
|
logger.error(f"Error processing handler for event {job_event_identifier}: {e}")
|
|
180
|
+
if propagate_worker_error:
|
|
181
|
+
raise
|
|
173
182
|
response = {
|
|
174
183
|
"error": str(e)
|
|
175
184
|
}
|
|
@@ -188,17 +197,24 @@ class HandlerInterface:
|
|
|
188
197
|
except Exception as e:
|
|
189
198
|
ok = False
|
|
190
199
|
logger.error(f"Error processing custom action '{action}' for event {job_event_identifier}: {e}")
|
|
200
|
+
if propagate_worker_error:
|
|
201
|
+
raise
|
|
191
202
|
response = {
|
|
192
203
|
"error": str(e)
|
|
193
204
|
}
|
|
194
205
|
case _:
|
|
195
206
|
ok = False
|
|
207
|
+
logger.error(f"Custom action '{action}' is not callable.")
|
|
208
|
+
if propagate_worker_error:
|
|
209
|
+
raise ValueError(f"Custom action '{action}' is not callable.")
|
|
196
210
|
response = {
|
|
197
211
|
"error": f"Custom action '{action}' is not callable."
|
|
198
212
|
}
|
|
199
213
|
case _:
|
|
200
214
|
# Handle invalid action types
|
|
201
215
|
logger.error(f"Invalid fred_worker_action type received: {type(worker_action)}")
|
|
216
|
+
if propagate_worker_error:
|
|
217
|
+
raise ValueError("Invalid fred_worker_action type.")
|
|
202
218
|
ok = False
|
|
203
219
|
response = {
|
|
204
220
|
"error": "Invalid fred_worker_action type."
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.6.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.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/runtimes/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fred_oss-0.6.0 → fred_oss-0.7.0}/src/main/fred/integrations/databricks/wrappers/__init__.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
|