vellum-workflow-server 1.2.5.post1__py3-none-any.whl → 1.3.0.post1__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.
- {vellum_workflow_server-1.2.5.post1.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/METADATA +2 -2
- {vellum_workflow_server-1.2.5.post1.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/RECORD +5 -5
- workflow_server/core/executor.py +13 -20
- {vellum_workflow_server-1.2.5.post1.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/WHEEL +0 -0
- {vellum_workflow_server-1.2.5.post1.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vellum-workflow-server
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0.post1
|
|
4
4
|
Summary:
|
|
5
5
|
License: AGPL
|
|
6
6
|
Requires-Python: >=3.9.0,<4
|
|
@@ -29,7 +29,7 @@ Requires-Dist: pyjwt (==2.10.0)
|
|
|
29
29
|
Requires-Dist: python-dotenv (==1.0.1)
|
|
30
30
|
Requires-Dist: retrying (==1.3.4)
|
|
31
31
|
Requires-Dist: sentry-sdk[flask] (==2.20.0)
|
|
32
|
-
Requires-Dist: vellum-ai (==1.
|
|
32
|
+
Requires-Dist: vellum-ai (==1.3.0)
|
|
33
33
|
Description-Content-Type: text/markdown
|
|
34
34
|
|
|
35
35
|
# Vellum Workflow Runner Server
|
{vellum_workflow_server-1.2.5.post1.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/RECORD
RENAMED
|
@@ -12,7 +12,7 @@ workflow_server/config.py,sha256=DyTty8NrAwvtx-esM3KthnpsNh-nKdWNlovWQOgiGpg,141
|
|
|
12
12
|
workflow_server/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
workflow_server/core/cancel_workflow.py,sha256=Ffkc3mzmrdMEUcD-sHfEhX4IwVrka-E--SxKA1dUfIU,2185
|
|
14
14
|
workflow_server/core/events.py,sha256=24MA66DVQuaLJJcZrS8IL1Zq4Ohi9CoouKZ5VgoH3Cs,1402
|
|
15
|
-
workflow_server/core/executor.py,sha256=
|
|
15
|
+
workflow_server/core/executor.py,sha256=gi4UEvcYLWYo4-mLK5ahnSpmoiW9ryRoVSA8My43D90,17995
|
|
16
16
|
workflow_server/core/utils.py,sha256=lgzxkAEjEXPxGXXQlUYTYuCdHht-eDJJmHj5AhEb3_o,1500
|
|
17
17
|
workflow_server/core/workflow_executor_context.py,sha256=w3OhV_AXpgh7AxpjEsc0vo-IJypgJcgr5DXJCqGptOU,1587
|
|
18
18
|
workflow_server/server.py,sha256=QBU12AaAfAgLqfCDBd24qIJl_mbheiq0-hfcWV7rZM4,1234
|
|
@@ -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=qwK5Rmy3RQyjtlUrYAuGuDlBeRzZKsf1yS-y2IpUizQ,6452
|
|
30
30
|
workflow_server/utils/utils.py,sha256=Wqqn-1l2ugkGgy5paWWdt0AVxAyPMQCYcnRSSOMjXlA,4355
|
|
31
|
-
vellum_workflow_server-1.
|
|
32
|
-
vellum_workflow_server-1.
|
|
33
|
-
vellum_workflow_server-1.
|
|
34
|
-
vellum_workflow_server-1.
|
|
31
|
+
vellum_workflow_server-1.3.0.post1.dist-info/METADATA,sha256=6NSSJ__ieybPIuDg2voOmsY7RXVkF2dhLjk0B-3IxTU,2273
|
|
32
|
+
vellum_workflow_server-1.3.0.post1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
33
|
+
vellum_workflow_server-1.3.0.post1.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
|
|
34
|
+
vellum_workflow_server-1.3.0.post1.dist-info/RECORD,,
|
workflow_server/core/executor.py
CHANGED
|
@@ -12,7 +12,7 @@ from threading import Event as ThreadingEvent
|
|
|
12
12
|
import time
|
|
13
13
|
from traceback import format_exc
|
|
14
14
|
from uuid import UUID, uuid4
|
|
15
|
-
from typing import
|
|
15
|
+
from typing import Any, Callable, Generator, Iterator, Optional, Tuple, Type
|
|
16
16
|
|
|
17
17
|
from pebble import concurrent
|
|
18
18
|
from vellum_ee.workflows.display.workflows import BaseWorkflowDisplay
|
|
@@ -20,12 +20,16 @@ from vellum_ee.workflows.server.virtual_file_loader import VirtualFileFinder
|
|
|
20
20
|
|
|
21
21
|
from vellum import Vellum, VellumEnvironment
|
|
22
22
|
from vellum.workflows import BaseWorkflow
|
|
23
|
+
from vellum.workflows.emitters.base import BaseWorkflowEmitter
|
|
24
|
+
from vellum.workflows.emitters.vellum_emitter import VellumEmitter
|
|
23
25
|
from vellum.workflows.events.types import BaseEvent
|
|
24
26
|
from vellum.workflows.events.workflow import WorkflowEventDisplayContext
|
|
25
27
|
from vellum.workflows.exceptions import WorkflowInitializationException
|
|
26
28
|
from vellum.workflows.inputs import BaseInputs
|
|
27
29
|
from vellum.workflows.nodes import BaseNode
|
|
28
30
|
from vellum.workflows.nodes.mocks import MockNodeExecution
|
|
31
|
+
from vellum.workflows.resolvers.base import BaseWorkflowResolver
|
|
32
|
+
from vellum.workflows.resolvers.resolver import VellumResolver
|
|
29
33
|
from vellum.workflows.state.base import BaseState, StateMeta
|
|
30
34
|
from vellum.workflows.state.context import WorkflowContext
|
|
31
35
|
from vellum.workflows.state.store import EmptyStore
|
|
@@ -47,15 +51,6 @@ from workflow_server.core.workflow_executor_context import (
|
|
|
47
51
|
)
|
|
48
52
|
from workflow_server.utils.log_proxy import redirect_log
|
|
49
53
|
|
|
50
|
-
if TYPE_CHECKING:
|
|
51
|
-
# Imported for typing only to avoid runtime dependency issues
|
|
52
|
-
from vellum.workflows.events.emitters.base import BaseWorkflowEmitter
|
|
53
|
-
|
|
54
|
-
try:
|
|
55
|
-
from vellum.workflows.events.emitters.vellum import VellumEmitter as _VellumEmitter
|
|
56
|
-
except Exception:
|
|
57
|
-
_VellumEmitter = None
|
|
58
|
-
|
|
59
54
|
logger = logging.getLogger(__name__)
|
|
60
55
|
|
|
61
56
|
|
|
@@ -349,23 +344,21 @@ def _create_workflow(executor_context: WorkflowExecutorContext, namespace: str)
|
|
|
349
344
|
|
|
350
345
|
# Determine whether to enable the Vellum Emitter for event publishing
|
|
351
346
|
use_vellum_emitter = bool((executor_context.feature_flags or {}).get("vembda-event-emitting-enabled"))
|
|
352
|
-
|
|
353
347
|
emitters: list["BaseWorkflowEmitter"] = []
|
|
354
348
|
if use_vellum_emitter:
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
# Emitter is not available at import time; continue without it
|
|
362
|
-
logger.warning("VellumEmitter not available; continuing without it")
|
|
349
|
+
emitters = [VellumEmitter()]
|
|
350
|
+
|
|
351
|
+
use_vellum_resolver = executor_context.previous_execution_id is not None
|
|
352
|
+
resolvers: list["BaseWorkflowResolver"] = []
|
|
353
|
+
if use_vellum_resolver:
|
|
354
|
+
resolvers = [VellumResolver()]
|
|
363
355
|
|
|
364
356
|
# Explicit constructor call to satisfy typing
|
|
365
357
|
workflow = Workflow(
|
|
366
358
|
context=workflow_context,
|
|
367
359
|
store=EmptyStore(),
|
|
368
|
-
emitters=emitters
|
|
360
|
+
emitters=emitters,
|
|
361
|
+
resolvers=resolvers,
|
|
369
362
|
)
|
|
370
363
|
|
|
371
364
|
return workflow
|
{vellum_workflow_server-1.2.5.post1.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|