vellum-workflow-server 0.14.73.post3__py3-none-any.whl → 0.14.73.post6__py3-none-any.whl

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-workflow-server
3
- Version: 0.14.73.post3
3
+ Version: 0.14.73.post6
4
4
  Summary:
5
5
  License: AGPL
6
6
  Requires-Python: >=3.9.0,<4
@@ -6,7 +6,7 @@ workflow_server/api/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
6
6
  workflow_server/api/tests/test_input_display_mapping.py,sha256=drBZqMudFyB5wgiUOcMgRXz7E7ge-Qgxbstw4E4f0zE,2211
7
7
  workflow_server/api/tests/test_workflow_view.py,sha256=2nscM_QsYPHkkTG8_JhNbE2LmGL5FQKXEtaLLjXouw0,14591
8
8
  workflow_server/api/tests/test_workflow_view_stream_workflow_route.py,sha256=cUVF3tqV8Ay91YfFr2lT2oXONWRN823Nk5M3EOC8wE8,24133
9
- workflow_server/api/workflow_view.py,sha256=9_ZI7TGlTRmeNiO47juTRx5TBpAjVmUEGx5C_VqTYMI,14993
9
+ workflow_server/api/workflow_view.py,sha256=F7cz2N_T_KsG4YEewPsq8fWE9lrFIU5hu4D_pmezGmk,15235
10
10
  workflow_server/code_exec_runner.py,sha256=njBK48zVUwhAjvap_KY1so-D0UjKgR4UihDuKow3JnM,2274
11
11
  workflow_server/config.py,sha256=K5Tavm7wiqCZt0RWWue7zzb8N6e8aWnFOTNlBqEJPcI,1330
12
12
  workflow_server/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -22,13 +22,13 @@ workflow_server/utils/exit_handler.py,sha256=_FacDVi4zc3bfTA3D2mJsISePlJ8jpLrnGV
22
22
  workflow_server/utils/log_proxy.py,sha256=nugi6fOgAYKX2X9DIc39TG366rsmmDUPoEtG3gzma_Y,3088
23
23
  workflow_server/utils/oom_killer.py,sha256=4Sag_iRQWqbp62iIBn6nKP-pxUHguOF93DdVXZTtJDk,2809
24
24
  workflow_server/utils/sentry.py,sha256=pqx3X_4W3yOzmz8QMJYUEi39skIKWtrTN5nyFhaPkbk,1597
25
- workflow_server/utils/system_utils.py,sha256=fTzbdpmZ-0bXiNBLYYQdNJWtFAItZgIH8cLJdoXDuQQ,2114
25
+ workflow_server/utils/system_utils.py,sha256=SVO7ofsoEXl7XduBtpiwHKMx7DTPmdC-uH6PiwRcN6M,2203
26
26
  workflow_server/utils/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  workflow_server/utils/tests/test_sentry_integration.py,sha256=LGmWiaLhFrx-jslrRjRq9JY6Z5ShLZyx_N_L0-FU6OI,2100
28
- workflow_server/utils/tests/test_system_utils.py,sha256=MdBxI9gxUOpR_JBAHpEz6dGFY6JjxhMSM2oExpqFvNA,4314
28
+ workflow_server/utils/tests/test_system_utils.py,sha256=_4GwXvVvU5BrATxUEWwQIPg0bzQXMWBtiBmjP8MTxJM,4314
29
29
  workflow_server/utils/tests/test_utils.py,sha256=qwK5Rmy3RQyjtlUrYAuGuDlBeRzZKsf1yS-y2IpUizQ,6452
30
30
  workflow_server/utils/utils.py,sha256=Wqqn-1l2ugkGgy5paWWdt0AVxAyPMQCYcnRSSOMjXlA,4355
31
- vellum_workflow_server-0.14.73.post3.dist-info/METADATA,sha256=WI6P39NDrxKvYn99EqvupmJvsghS7m2bvR-InCMll1U,2243
32
- vellum_workflow_server-0.14.73.post3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- vellum_workflow_server-0.14.73.post3.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
- vellum_workflow_server-0.14.73.post3.dist-info/RECORD,,
31
+ vellum_workflow_server-0.14.73.post6.dist-info/METADATA,sha256=KJ_sH0VWptJn4XR03kAo7Gn8e3qNvH0-kwbj58B2ExQ,2243
32
+ vellum_workflow_server-0.14.73.post6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ vellum_workflow_server-0.14.73.post6.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
+ vellum_workflow_server-0.14.73.post6.dist-info/RECORD,,
@@ -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
- _MEMORY_CHECK_INTERVAL_SECONDS = 3
16
- _MAX_MEMORY_CHECK_ATTEMPTS = 5
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 == 5
88
+ assert mock_sleep.call_count == 3
89
89
 
90
90
 
91
91
  @patch("workflow_server.utils.system_utils.time.sleep")