vellum-workflow-server 1.7.8__tar.gz → 1.7.8.post2__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-1.7.8 → vellum_workflow_server-1.7.8.post2}/PKG-INFO +1 -1
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/pyproject.toml +1 -1
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/workflow_view.py +18 -2
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/core/executor.py +0 -13
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/start.py +7 -1
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/README.md +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/__init__.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/__init__.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/auth_middleware.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/healthz_view.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/tests/__init__.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/tests/test_input_display_mapping.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/tests/test_workflow_view.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/api/tests/test_workflow_view_stream_workflow_route.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/code_exec_runner.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/config.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/core/__init__.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/core/cancel_workflow.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/core/events.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/core/utils.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/core/workflow_executor_context.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/server.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/__init__.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/exit_handler.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/log_proxy.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/oom_killer.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/sentry.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/system_utils.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/tests/__init__.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/tests/test_sentry_integration.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/tests/test_system_utils.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/tests/test_utils.py +0 -0
- {vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/utils/utils.py +0 -0
|
@@ -319,7 +319,15 @@ def stream_workflow_route() -> Response:
|
|
|
319
319
|
# These can happen either from Vembda disconnects (possibily from predict disconnects) or
|
|
320
320
|
# from knative activator gateway timeouts which are caused by idleTimeout or responseStartSeconds
|
|
321
321
|
# being exceeded.
|
|
322
|
-
app.logger.error(
|
|
322
|
+
app.logger.error(
|
|
323
|
+
"Client disconnected in the middle of the Workflow Stream",
|
|
324
|
+
extra={
|
|
325
|
+
"sentry_tags": {
|
|
326
|
+
"server_version": vembda_initiated_event.body.server_version,
|
|
327
|
+
"sdk_version": vembda_initiated_event.body.sdk_version,
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
)
|
|
323
331
|
return
|
|
324
332
|
except Exception as e:
|
|
325
333
|
logger.exception("Error during workflow response stream generator", extra={"error": e})
|
|
@@ -535,5 +543,13 @@ def startup_error_generator(
|
|
|
535
543
|
|
|
536
544
|
logger.error("Workflow stream could not start from resource constraints")
|
|
537
545
|
except GeneratorExit:
|
|
538
|
-
app.logger.error(
|
|
546
|
+
app.logger.error(
|
|
547
|
+
"Client disconnected in the middle of the Startup Error Stream",
|
|
548
|
+
extra={
|
|
549
|
+
"sentry_tags": {
|
|
550
|
+
"server_version": vembda_initiated_event.body.server_version,
|
|
551
|
+
"sdk_version": vembda_initiated_event.body.sdk_version,
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
)
|
|
539
555
|
return
|
|
@@ -15,7 +15,6 @@ from uuid import UUID, uuid4
|
|
|
15
15
|
from typing import Any, Callable, Generator, Iterator, Optional, Tuple, Type
|
|
16
16
|
|
|
17
17
|
from vellum_ee.workflows.display.utils.events import event_enricher
|
|
18
|
-
from vellum_ee.workflows.display.workflows import BaseWorkflowDisplay
|
|
19
18
|
from vellum_ee.workflows.server.virtual_file_loader import VirtualFileFinder
|
|
20
19
|
|
|
21
20
|
from vellum.workflows import BaseWorkflow
|
|
@@ -23,7 +22,6 @@ from vellum.workflows.emitters.base import BaseWorkflowEmitter
|
|
|
23
22
|
from vellum.workflows.emitters.vellum_emitter import VellumEmitter
|
|
24
23
|
from vellum.workflows.events.exception_handling import stream_initialization_exception
|
|
25
24
|
from vellum.workflows.events.types import BaseEvent
|
|
26
|
-
from vellum.workflows.events.workflow import WorkflowEventDisplayContext
|
|
27
25
|
from vellum.workflows.exceptions import WorkflowInitializationException
|
|
28
26
|
from vellum.workflows.inputs import BaseInputs
|
|
29
27
|
from vellum.workflows.nodes import BaseNode
|
|
@@ -150,7 +148,6 @@ def stream_workflow(
|
|
|
150
148
|
workflow, namespace = _gather_workflow(executor_context)
|
|
151
149
|
workflow_inputs = _get_workflow_inputs(executor_context, workflow.__class__)
|
|
152
150
|
|
|
153
|
-
display_context = _gather_display_context(workflow, namespace)
|
|
154
151
|
workflow_state = (
|
|
155
152
|
workflow.deserialize_state(
|
|
156
153
|
executor_context.state,
|
|
@@ -222,8 +219,6 @@ def stream_workflow(
|
|
|
222
219
|
if first:
|
|
223
220
|
executor_context.stream_start_time = time.time_ns()
|
|
224
221
|
first = False
|
|
225
|
-
if event.name == "workflow.execution.initiated":
|
|
226
|
-
event.body.display_context = display_context
|
|
227
222
|
|
|
228
223
|
yield _dump_event(
|
|
229
224
|
event=event,
|
|
@@ -492,11 +487,3 @@ def _gather_workflow(context: BaseExecutorContext) -> Tuple[BaseWorkflow, str]:
|
|
|
492
487
|
message=f"Failed to initialize workflow: {e}",
|
|
493
488
|
workflow_definition=BaseWorkflow,
|
|
494
489
|
) from e
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
def _gather_display_context(workflow: BaseWorkflow, namespace: str) -> Optional["WorkflowEventDisplayContext"]:
|
|
498
|
-
try:
|
|
499
|
-
return BaseWorkflowDisplay.gather_event_display_context(namespace, workflow.__class__)
|
|
500
|
-
except Exception:
|
|
501
|
-
logger.exception("Unable to Parse Workflow Display Context")
|
|
502
|
-
return None
|
{vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/start.py
RENAMED
|
@@ -32,11 +32,17 @@ class CustomGunicornLogger(glogging.Logger):
|
|
|
32
32
|
|
|
33
33
|
logger = logging.getLogger("gunicorn.access")
|
|
34
34
|
logger.addFilter(HealthCheckFilter())
|
|
35
|
+
logger.addFilter(SignalFilter())
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
class HealthCheckFilter(logging.Filter):
|
|
38
39
|
def filter(self, record: Any) -> bool:
|
|
39
|
-
return "
|
|
40
|
+
return "Handling signal: winch" not in record.getMessage()
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class SignalFilter(logging.Filter):
|
|
44
|
+
def filter(self, record: Any) -> bool:
|
|
45
|
+
return "SIGTERM" not in record.getMessage()
|
|
40
46
|
|
|
41
47
|
|
|
42
48
|
def start() -> None:
|
|
File without changes
|
{vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/__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
|
{vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vellum_workflow_server-1.7.8 → vellum_workflow_server-1.7.8.post2}/src/workflow_server/server.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
|