vellum-workflow-server 0.14.73.post3__tar.gz → 0.14.73.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.73.post3 → vellum_workflow_server-0.14.73.post6}/PKG-INFO +1 -1
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/pyproject.toml +1 -1
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/workflow_view.py +3 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/system_utils.py +3 -2
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/tests/test_system_utils.py +1 -1
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/README.md +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/__init__.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/__init__.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/auth_middleware.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/healthz_view.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/tests/__init__.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/tests/test_input_display_mapping.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/tests/test_workflow_view.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/api/tests/test_workflow_view_stream_workflow_route.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/code_exec_runner.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/config.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/core/__init__.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/core/cancel_workflow.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/core/events.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/core/executor.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/core/utils.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/core/workflow_executor_context.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/server.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/start.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/__init__.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/exit_handler.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/log_proxy.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/oom_killer.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/sentry.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/tests/__init__.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/tests/test_sentry_integration.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/tests/test_utils.py +0 -0
- {vellum_workflow_server-0.14.73.post3 → vellum_workflow_server-0.14.73.post6}/src/workflow_server/utils/utils.py +0 -0
|
@@ -234,6 +234,9 @@ def stream_workflow_route() -> Response:
|
|
|
234
234
|
f"process count: {get_active_process_count()}"
|
|
235
235
|
)
|
|
236
236
|
except GeneratorExit:
|
|
237
|
+
# These can happen either from Vembda disconnects (possibily from predict disconnects) or
|
|
238
|
+
# from knative activator gateway timeouts which are caused by idleTimeout or responseStartSeconds
|
|
239
|
+
# being exceeded.
|
|
237
240
|
app.logger.error("Client disconnected in the middle of the Workflow Stream")
|
|
238
241
|
return
|
|
239
242
|
finally:
|
|
@@ -12,8 +12,9 @@ WARN_MEMORY_PERCENT = 0.90
|
|
|
12
12
|
FORCE_GC_MEMORY_PERCENT = 0.75
|
|
13
13
|
|
|
14
14
|
_MAX_PROCESS_COUNT = math.ceil(CONCURRENCY * 1.7)
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
# Keep these under the 15s knative response start timeout or it may trigger odd behavior
|
|
16
|
+
_MEMORY_CHECK_INTERVAL_SECONDS = 2
|
|
17
|
+
_MAX_MEMORY_CHECK_ATTEMPTS = 3
|
|
17
18
|
_ACTIVE_PROCESS_COUNT = multiprocessing.Value("i", 0)
|
|
18
19
|
_ACTIVE_PROCESS_LOCK = multiprocessing.Lock()
|
|
19
20
|
|
|
@@ -85,7 +85,7 @@ def test_wait_for_available_process_never_available(mock_get_active_process_coun
|
|
|
85
85
|
assert result is False
|
|
86
86
|
|
|
87
87
|
# Should sleep for each attempt
|
|
88
|
-
assert mock_sleep.call_count ==
|
|
88
|
+
assert mock_sleep.call_count == 3
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
@patch("workflow_server.utils.system_utils.time.sleep")
|
|
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
|
|
File without changes
|