Skip to content

Commit 7fe39db

Browse files
authored
Merge pull request #176 from durable-workflow/fix/entry-validation-advertisement-221
Declare safe workflow entry validation for replacement routing
2 parents dcc5aa6 + 881151f commit 7fe39db

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/durable_workflow/worker.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
TYPED_SEARCH_ATTRIBUTES_CAPABILITY,
138138
DURABLE_SELECTION_CAPABILITY,
139139
LOCAL_ACTIVITIES_CAPABILITY,
140+
"workflow_entry_arguments_validation",
140141
)
141142

142143
_WORKFLOW_WORK_TASK_KINDS = ("workflow", "update_validation")

‎tests/test_worker.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ async def test_register(self, mock_client: AsyncMock) -> None:
430430
"typed_search_attributes",
431431
DURABLE_SELECTION_CAPABILITY,
432432
"local_activities",
433+
"workflow_entry_arguments_validation",
433434
"query_tasks",
434435
MESSAGE_STREAMS_CAPABILITY,
435436
"worker_sessions",
@@ -577,6 +578,7 @@ def run(self, ctx): # type: ignore[no-untyped-def]
577578
TYPED_SEARCH_ATTRIBUTES_CAPABILITY,
578579
DURABLE_SELECTION_CAPABILITY,
579580
"local_activities",
581+
"workflow_entry_arguments_validation",
580582
"query_tasks",
581583
WORKFLOW_UPDATES_CAPABILITY,
582584
MESSAGE_STREAMS_CAPABILITY,
@@ -664,6 +666,7 @@ def run(self, ctx): # type: ignore[no-untyped-def]
664666
TYPED_SEARCH_ATTRIBUTES_CAPABILITY,
665667
DURABLE_SELECTION_CAPABILITY,
666668
"local_activities",
669+
"workflow_entry_arguments_validation",
667670
"query_tasks",
668671
UPDATE_VALIDATION_TASKS_CAPABILITY,
669672
WORKFLOW_UPDATES_CAPABILITY,
@@ -774,6 +777,7 @@ async def test_register_keeps_baseline_capabilities_when_server_does_not_support
774777
TYPED_SEARCH_ATTRIBUTES_CAPABILITY,
775778
DURABLE_SELECTION_CAPABILITY,
776779
"local_activities",
780+
"workflow_entry_arguments_validation",
777781
MESSAGE_STREAMS_CAPABILITY,
778782
"worker_sessions",
779783
]

0 commit comments

Comments
 (0)