vellum-workflow-server 1.7.0.post1__py3-none-any.whl → 1.7.0.post2__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: 1.7.0.post1
3
+ Version: 1.7.0.post2
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=XfsW8_hFKN5rzp2UFVviVoLW-8FD-nvD6mSZHnIyrWM,30483
8
8
  workflow_server/api/tests/test_workflow_view_stream_workflow_route.py,sha256=K_T-AGeVZ-UOe5Cy8n8-yRof4eZPmLjEqvlEYalaIBo,33847
9
- workflow_server/api/workflow_view.py,sha256=TBwrtWeQtrRaOUNT_lUTPS_6MqK3-JUrkd91hIDByPA,20179
9
+ workflow_server/api/workflow_view.py,sha256=7P9dkGhGvDQWgJaBWiKj-kC82rT6PdN-tMJSjHxGQgI,19904
10
10
  workflow_server/code_exec_runner.py,sha256=5uTjHJ231aX6vMwPKRvLcQdbsIxhjTsGMk8G0MEnasU,2152
11
11
  workflow_server/config.py,sha256=qmmTr6ty3ZN5LDOFs3TfUxYshYe6Mmn_LanplHHeE9Q,1796
12
12
  workflow_server/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -28,7 +28,7 @@ workflow_server/utils/tests/test_sentry_integration.py,sha256=LGmWiaLhFrx-jslrRj
28
28
  workflow_server/utils/tests/test_system_utils.py,sha256=_4GwXvVvU5BrATxUEWwQIPg0bzQXMWBtiBmjP8MTxJM,4314
29
29
  workflow_server/utils/tests/test_utils.py,sha256=0Nq6du8o-iBtTrip9_wgHES53JSiJbVdSXaBnPobw3s,6930
30
30
  workflow_server/utils/utils.py,sha256=ZPoM1Suhid22dpB8oEFLux8wx-9iyzmSfWuYxSCrgWk,4774
31
- vellum_workflow_server-1.7.0.post1.dist-info/METADATA,sha256=QgS_WIUlRyosFr7Bkm-epkharNF-Hi7gtRDLcASzlUc,2273
32
- vellum_workflow_server-1.7.0.post1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- vellum_workflow_server-1.7.0.post1.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
- vellum_workflow_server-1.7.0.post1.dist-info/RECORD,,
31
+ vellum_workflow_server-1.7.0.post2.dist-info/METADATA,sha256=IYvfC33eJlB3j9_zmPzSi1M5mm3gTwlmxZmlv-Y0Mgc,2273
32
+ vellum_workflow_server-1.7.0.post2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ vellum_workflow_server-1.7.0.post2.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
+ vellum_workflow_server-1.7.0.post2.dist-info/RECORD,,
@@ -431,31 +431,20 @@ def serialize_route() -> Response:
431
431
  content_type="application/json",
432
432
  )
433
433
 
434
- try:
435
- client = None
436
- if workspace_api_key:
437
- try:
438
- client = create_vellum_client(api_key=workspace_api_key)
439
- except Exception as e:
440
- logger.warning(f"Failed to create VellumClient with provided workspace_api_key: {str(e)}")
441
-
442
- # Generate a unique namespace for this serialization request
443
- namespace = "".join(random.choice(string.ascii_letters + string.digits) for i in range(14))
444
- virtual_finder = VirtualFileFinder(files, namespace)
434
+ client = create_vellum_client(api_key=workspace_api_key)
445
435
 
446
- try:
447
- sys.meta_path.append(virtual_finder)
448
- result = BaseWorkflowDisplay.serialize_module(namespace, client=client)
449
-
450
- return Response(
451
- json.dumps(result.model_dump()),
452
- status=200,
453
- content_type="application/json",
454
- )
436
+ # Generate a unique namespace for this serialization request
437
+ namespace = "".join(random.choice(string.ascii_letters + string.digits) for i in range(14))
438
+ virtual_finder = VirtualFileFinder(files, namespace)
439
+ try:
440
+ sys.meta_path.append(virtual_finder)
441
+ result = BaseWorkflowDisplay.serialize_module(namespace, client=client, dry_run=True)
455
442
 
456
- finally:
457
- if virtual_finder in sys.meta_path:
458
- sys.meta_path.remove(virtual_finder)
443
+ return Response(
444
+ json.dumps(result.model_dump()),
445
+ status=200,
446
+ content_type="application/json",
447
+ )
459
448
 
460
449
  except WorkflowInitializationException as e:
461
450
  error_message = f"Serialization failed: {str(e)}"
@@ -474,6 +463,10 @@ def serialize_route() -> Response:
474
463
  content_type="application/json",
475
464
  )
476
465
 
466
+ finally:
467
+ if virtual_finder in sys.meta_path:
468
+ sys.meta_path.remove(virtual_finder)
469
+
477
470
 
478
471
  @bp.route("/version", methods=["GET"])
479
472
  def get_version_route() -> tuple[dict, int]: