obarisk commented on issue #53637:
URL: https://github.com/apache/airflow/issues/53637#issuecomment-3538842272

   @Srabasti 
   
   to replicate the issue, all you need to do is
   
   1. have an airflow 3.0+ environment
   2. copy the example dag to your environment
   
   to debug the issue,
   
   modify a bit of the example,
   
   ```python
   from airflow.models.taskinstance import TaskInstance
   from airflow.models.dagrun import DagRun
   
   @dag(schedule=None)
   def document_context():
       @task
       def print_ti_info(task_instance: TaskInstance, dag_run: DagRun):
           print(f"Run ID: {task_instance.run_id}")
           print(dag_runt.__class__)
           ## airflow >= 3.0 airflow.sdk.api.datamodels._generated.DagRun
           ## airflow <  3.0 airflow.models.dagrun.DagRun
       print_ti_info()
   
   document_context()
   ```


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