@@ -752,11 +752,12 @@ def call_activity(
752
752
* ,
753
753
input : Optional [TInput ] = None ,
754
754
retry_policy : Optional [task .RetryPolicy ] = None ,
755
+ tags : Optional [dict [str , str ]] = None ,
755
756
) -> task .Task [TOutput ]:
756
757
id = self .next_sequence_number ()
757
758
758
759
self .call_activity_function_helper (
759
- id , activity , input = input , retry_policy = retry_policy , is_sub_orch = False
760
+ id , activity , input = input , retry_policy = retry_policy , is_sub_orch = False , tags = tags
760
761
)
761
762
return self ._pending_tasks .get (id , task .CompletableTask ())
762
763
@@ -787,6 +788,7 @@ def call_activity_function_helper(
787
788
* ,
788
789
input : Optional [TInput ] = None ,
789
790
retry_policy : Optional [task .RetryPolicy ] = None ,
791
+ tags : Optional [dict [str , str ]] = None ,
790
792
is_sub_orch : bool = False ,
791
793
instance_id : Optional [str ] = None ,
792
794
fn_task : Optional [task .CompletableTask [TOutput ]] = None ,
@@ -806,7 +808,7 @@ def call_activity_function_helper(
806
808
if isinstance (activity_function , str )
807
809
else task .get_name (activity_function )
808
810
)
809
- action = ph .new_schedule_task_action (id , name , encoded_input )
811
+ action = ph .new_schedule_task_action (id , name , encoded_input , tags )
810
812
else :
811
813
if instance_id is None :
812
814
# Create a deteministic instance ID based on the parent instance ID
0 commit comments