@@ -69,7 +69,7 @@ def initialize(
6969 workflow_payload_codec_thread_pool :,
7070 unsafe_workflow_io_enabled :,
7171 debug_mode :,
72- on_eviction : nil
72+ assert_valid_local_activity : , on_eviction : nil
7373 )
7474 @executor = workflow_executor
7575
@@ -111,7 +111,8 @@ def initialize(
111111
112112 t
113113 end . freeze ,
114- unsafe_workflow_io_enabled :
114+ unsafe_workflow_io_enabled :,
115+ assert_valid_local_activity :
115116 )
116117 @state . on_eviction = on_eviction if on_eviction
117118
@@ -186,14 +187,16 @@ def apply_codec_on_payload_visit(payload_or_payloads, &)
186187 class State
187188 attr_reader :workflow_definitions , :bridge_worker , :logger , :metric_meter , :data_converter , :deadlock_timeout ,
188189 :illegal_calls , :namespace , :task_queue , :disable_eager_activity_execution ,
189- :workflow_interceptors , :workflow_failure_exception_types , :unsafe_workflow_io_enabled
190+ :workflow_interceptors , :workflow_failure_exception_types , :unsafe_workflow_io_enabled ,
191+ :assert_valid_local_activity
190192
191193 attr_writer :on_eviction
192194
193195 def initialize (
194196 workflow_definitions :, bridge_worker :, logger :, metric_meter :, data_converter :, deadlock_timeout :,
195197 illegal_calls :, namespace :, task_queue :, disable_eager_activity_execution :,
196- workflow_interceptors :, workflow_failure_exception_types :, unsafe_workflow_io_enabled :
198+ workflow_interceptors :, workflow_failure_exception_types :, unsafe_workflow_io_enabled :,
199+ assert_valid_local_activity :
197200 )
198201 @workflow_definitions = workflow_definitions
199202 @bridge_worker = bridge_worker
@@ -208,6 +211,7 @@ def initialize(
208211 @workflow_interceptors = workflow_interceptors
209212 @workflow_failure_exception_types = workflow_failure_exception_types
210213 @unsafe_workflow_io_enabled = unsafe_workflow_io_enabled
214+ @assert_valid_local_activity = assert_valid_local_activity
211215
212216 @running_workflows = { }
213217 @running_workflows_mutex = Mutex . new
0 commit comments