vellum-workflow-server 1.3.0__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.3.0.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/METADATA +1 -1
- {vellum_workflow_server-1.3.0.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/RECORD +5 -5
- workflow_server/core/executor.py +12 -16
- {vellum_workflow_server-1.3.0.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/WHEEL +0 -0
- {vellum_workflow_server-1.3.0.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/entry_points.txt +0 -0
{vellum_workflow_server-1.3.0.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.3.0.dist-info/METADATA,sha256=
|
|
32
|
-
vellum_workflow_server-1.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
33
|
-
vellum_workflow_server-1.3.0.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
|
|
34
|
-
vellum_workflow_server-1.3.0.dist-info/RECORD,,
|
|
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,10 +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
|
-
from vellum.workflows.emitters.base import BaseWorkflowEmitter
|
|
52
|
-
|
|
53
|
-
|
|
54
54
|
logger = logging.getLogger(__name__)
|
|
55
55
|
|
|
56
56
|
|
|
@@ -344,25 +344,21 @@ def _create_workflow(executor_context: WorkflowExecutorContext, namespace: str)
|
|
|
344
344
|
|
|
345
345
|
# Determine whether to enable the Vellum Emitter for event publishing
|
|
346
346
|
use_vellum_emitter = bool((executor_context.feature_flags or {}).get("vembda-event-emitting-enabled"))
|
|
347
|
-
|
|
348
347
|
emitters: list["BaseWorkflowEmitter"] = []
|
|
349
348
|
if use_vellum_emitter:
|
|
350
|
-
|
|
349
|
+
emitters = [VellumEmitter()]
|
|
351
350
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
emitters = []
|
|
357
|
-
else:
|
|
358
|
-
# Emitter is not available at import time; continue without it
|
|
359
|
-
logger.warning("VellumEmitter not available; continuing without it")
|
|
351
|
+
use_vellum_resolver = executor_context.previous_execution_id is not None
|
|
352
|
+
resolvers: list["BaseWorkflowResolver"] = []
|
|
353
|
+
if use_vellum_resolver:
|
|
354
|
+
resolvers = [VellumResolver()]
|
|
360
355
|
|
|
361
356
|
# Explicit constructor call to satisfy typing
|
|
362
357
|
workflow = Workflow(
|
|
363
358
|
context=workflow_context,
|
|
364
359
|
store=EmptyStore(),
|
|
365
|
-
emitters=emitters
|
|
360
|
+
emitters=emitters,
|
|
361
|
+
resolvers=resolvers,
|
|
366
362
|
)
|
|
367
363
|
|
|
368
364
|
return workflow
|
{vellum_workflow_server-1.3.0.dist-info → vellum_workflow_server-1.3.0.post1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|