Taragolis commented on issue #18188:
URL: https://github.com/apache/airflow/issues/18188#issuecomment-918104290


   It would be nice if it show the same information that it shows in current 
stable - `2.1.x`
   In case if no DagRun created before it uses current date-time as execution 
date (my assumptions)
   
   **Task Instance Attributes - 2.1.2**
   
![image](https://user-images.githubusercontent.com/3998685/133074323-db10a14e-e695-4cb7-882c-87fe551b66cc.png)
   
   However probably it not possible any more and at least it would be nice get 
same error as we get on access to XCom
   
   
![image](https://user-images.githubusercontent.com/3998685/133075482-5f75e883-6626-4887-b3e7-4b4e8cc1d03d.png)
   
   
   **Rendered Template - 2.1.2** 
   
   Rendered Template also handy for if DagRun not exists, at least it help 
localize some errors in macros/variables
   
   _Some configuration errors_:
   
![image](https://user-images.githubusercontent.com/3998685/133074947-cdf22fdf-db29-4f24-af0c-32ceb2be015c.png)
   
   _Missing Variables_:
   
![image](https://user-images.githubusercontent.com/3998685/133075001-859f7143-67c9-4470-b024-3e79140c5418.png)
   
   _An finally rendered template_
   
![image](https://user-images.githubusercontent.com/3998685/133075132-195c0971-747e-4ee4-8616-128c03ac4eea.png)
   
   **Rendered Template - 2.2.0b1**
   
   ```
   Python version: 3.8.11
   Airflow version: 2.2.0b1
   Node: e70bca1d41d3
   
-------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/_compat.py", 
line 39, in reraise
       raise value
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 
1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/www/auth.py", line 
51, in decorated
       return func(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/www/decorators.py", 
line 72, in wrapper
       return f(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/session.py", 
line 70, in wrapper
       return func(*args, session=session, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/www/views.py", line 
1055, in rendered_templates
       ti = dag_run.get_task_instance(task_id=task.task_id, session=session)
   AttributeError: 'NoneType' object has no attribute 'get_task_instance'
   ```


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