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**  However probably it not possible any more and at least it would be nice get same error as we get on access to XCom  **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_:  _Missing Variables_:  _An finally rendered template_  **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]
