hussein-awala commented on code in PR #30110:
URL: https://github.com/apache/airflow/pull/30110#discussion_r1159065551


##########
airflow/jobs/triggerer_job.py:
##########
@@ -484,9 +484,14 @@ async def create_triggers(self):
         while self.to_create:
             trigger_id, trigger_instance = self.to_create.popleft()
             if trigger_id not in self.triggers:
+                task_instance: TaskInstance = trigger_instance.task_instance
+                dag_id = task_instance.dag_id
+                run_id = task_instance.run_id
+                task_id = task_instance.task_id
+                map_index = task_instance.map_index
                 self.triggers[trigger_id] = {
                     "task": asyncio.create_task(self.run_trigger(trigger_id, 
trigger_instance)),
-                    "name": f"{trigger_instance!r} (ID {trigger_id})",
+                    "name": f"{dag_id}/{run_id}/{task_id}/{map_index} (ID 
{trigger_id})",

Review Comment:
   I think including the `try_number` is a good idea



-- 
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