vincbeck commented on code in PR #44369:
URL: https://github.com/apache/airflow/pull/44369#discussion_r1866535428


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

Review Comment:
   I set back the name if a task instance is associated to the trigger. 
However, if the trigger is used for driven event scheduling, I use the trigger 
ID as name since this is the only information I have handy 



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