dabla commented on code in PR #55068:
URL: https://github.com/apache/airflow/pull/55068#discussion_r2541692485


##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -1446,6 +1447,80 @@ def update_heartbeat(self):
                 .values(last_heartbeat_at=timezone.utcnow())
             )
 
+    @property
+    def start_trigger_args(self) -> StartTriggerArgs | None:
+        if self.task:
+            if self.task.is_mapped:
+                context = self.get_template_context()
+                if self.task.expand_start_from_trigger(context=context):

Review Comment:
   It already does:
   
   ```
       def expand_start_from_trigger(self, *, context: Context) -> bool:
           if not self.partial_kwargs.get("start_from_trigger", 
self.start_from_trigger):
               return False
           # TODO (GH-52141): Implement this.
           log.warning(
               "Starting a mapped task from triggerer is currently unsupported",
               task_id=self.task_id,
               dag_id=self.dag_id,
           )
           return False
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to