vellum-workflow-server 0.14.72.post4__tar.gz → 0.14.72.post6__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.
Potentially problematic release.
This version of vellum-workflow-server might be problematic. Click here for more details.
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/PKG-INFO +1 -1
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/pyproject.toml +1 -1
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/workflow_view.py +2 -15
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/core/workflow_executor_context.py +4 -1
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/README.md +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/__init__.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/__init__.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/auth_middleware.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/healthz_view.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/tests/__init__.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/tests/test_input_display_mapping.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/tests/test_workflow_view.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/api/tests/test_workflow_view_stream_workflow_route.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/code_exec_runner.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/config.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/core/__init__.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/core/cancel_workflow.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/core/events.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/core/executor.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/server.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/start.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/__init__.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/exit_handler.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/log_proxy.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/oom_killer.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/sentry.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/system_utils.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/tests/__init__.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/tests/test_system_utils.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/tests/test_utils.py +0 -0
- {vellum_workflow_server-0.14.72.post4 → vellum_workflow_server-0.14.72.post6}/src/workflow_server/utils/utils.py +0 -0
|
@@ -398,7 +398,7 @@ def get_version_route() -> tuple[dict, int]:
|
|
|
398
398
|
node_display_class = get_node_display_class(obj)
|
|
399
399
|
exec_config_raw = node_display_class().serialize(WorkflowDisplayContext())
|
|
400
400
|
exec_config = cast(Dict[str, Any], exec_config_raw)
|
|
401
|
-
|
|
401
|
+
config_module = exec_config["definition"]["module"]
|
|
402
402
|
label = exec_config["label"]
|
|
403
403
|
description = (
|
|
404
404
|
exec_config["display_data"]["comment"]["value"]
|
|
@@ -408,7 +408,7 @@ def get_version_route() -> tuple[dict, int]:
|
|
|
408
408
|
nodes.append(
|
|
409
409
|
{
|
|
410
410
|
"id": str(uuid4()),
|
|
411
|
-
"module":
|
|
411
|
+
"module": config_module,
|
|
412
412
|
"name": obj.__name__,
|
|
413
413
|
"label": pascal_to_title_case(label),
|
|
414
414
|
"description": description,
|
|
@@ -428,16 +428,9 @@ def get_version_route() -> tuple[dict, int]:
|
|
|
428
428
|
|
|
429
429
|
|
|
430
430
|
def get_workflow_request_context(data: dict) -> WorkflowExecutorContext:
|
|
431
|
-
# not sure if this is the filter we want to pass forward?
|
|
432
|
-
trace_id = uuid4()
|
|
433
|
-
if "execution_context" in data and isinstance(data["execution_context"], dict):
|
|
434
|
-
if "trace_id" in data["execution_context"]:
|
|
435
|
-
trace_id = data["execution_context"]["trace_id"]
|
|
436
|
-
|
|
437
431
|
context_data = {
|
|
438
432
|
**data,
|
|
439
433
|
"inputs": convert_json_inputs_to_vellum(data.get("inputs") or []),
|
|
440
|
-
"trace_id": trace_id,
|
|
441
434
|
"request_start_time": time.time_ns(),
|
|
442
435
|
}
|
|
443
436
|
|
|
@@ -445,15 +438,9 @@ def get_workflow_request_context(data: dict) -> WorkflowExecutorContext:
|
|
|
445
438
|
|
|
446
439
|
|
|
447
440
|
def get_node_request_context(data: dict) -> NodeExecutorContext:
|
|
448
|
-
trace_id = uuid4()
|
|
449
|
-
if "execution_context" in data and isinstance(data["execution_context"], dict):
|
|
450
|
-
if "trace_id" in data["execution_context"]:
|
|
451
|
-
trace_id = data["execution_context"]["trace_id"]
|
|
452
|
-
|
|
453
441
|
context_data = {
|
|
454
442
|
**data,
|
|
455
443
|
"inputs": convert_json_inputs_to_vellum(data["inputs"]),
|
|
456
|
-
"trace_id": trace_id,
|
|
457
444
|
"request_start_time": time.time_ns(),
|
|
458
445
|
}
|
|
459
446
|
|
|
@@ -15,7 +15,6 @@ class BaseExecutorContext(UniversalBaseModel):
|
|
|
15
15
|
files: dict[str, str]
|
|
16
16
|
environment_api_key: str
|
|
17
17
|
execution_id: UUID
|
|
18
|
-
trace_id: UUID
|
|
19
18
|
module: str
|
|
20
19
|
execution_context: ExecutionContext = field(default_factory=ExecutionContext)
|
|
21
20
|
request_start_time: int
|
|
@@ -28,6 +27,10 @@ class BaseExecutorContext(UniversalBaseModel):
|
|
|
28
27
|
def container_overhead_latency(self) -> int:
|
|
29
28
|
return self.stream_start_time - self.request_start_time if self.stream_start_time else -1
|
|
30
29
|
|
|
30
|
+
@property
|
|
31
|
+
def trace_id(self) -> UUID:
|
|
32
|
+
return self.execution_context.trace_id
|
|
33
|
+
|
|
31
34
|
def __hash__(self) -> int:
|
|
32
35
|
# do we think we need anything else for a unique hash for caching?
|
|
33
36
|
return hash(str(self.execution_id))
|
|
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
|
|
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
|