File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -2796,8 +2796,21 @@ def _apply_schedule_command(
27962796 ] = None ,
27972797 ) -> None :
27982798 # Convert arguments before creating command in case it raises error
2799+ payload_converter = self ._instance ._payload_converter
2800+ if isinstance (payload_converter , temporalio .converter .WithSerializationContext ):
2801+ context = temporalio .converter .ActivitySerializationContext (
2802+ namespace = self ._instance ._info .namespace ,
2803+ workflow_id = self ._instance ._info .workflow_id ,
2804+ workflow_type = self ._instance ._info .workflow_type ,
2805+ activity_type = self ._input .activity ,
2806+ activity_task_queue = self ._input .task_queue or ""
2807+ if isinstance (self ._input , StartActivityInput )
2808+ else "" ,
2809+ is_local = isinstance (self ._input , StartLocalActivityInput ),
2810+ )
2811+ payload_converter = payload_converter .with_context (context )
27992812 payloads = (
2800- self . _instance . _payload_converter .to_payloads (self ._input .args )
2813+ payload_converter .to_payloads (self ._input .args )
28012814 if self ._input .args
28022815 else None
28032816 )
You can’t perform that action at this time.
0 commit comments