guavacoderepo opened a new issue, #43455:
URL: https://github.com/apache/airflow/issues/43455
### Apache Airflow version
2.10.2
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
[2024-10-29T02:33:38.169+0000] {app.py:1744} ERROR - Exception on
/dags/user_automation_dag/grid [GET]
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line
2529, in wsgi_app
response = self.full_dispatch_request()
File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line
1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line
1823, in full_dispatch_request
rv = self.dispatch_request()
File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line
1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/www/auth.py", line
47, in decorated
return func(*args, **kwargs)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/www/decorators.py",
line 166, in view_func
return f(*args, **kwargs)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/www/decorators.py",
line 125, in wrapper
return f(*args, **kwargs)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/session.py",
line 76, in wrapper
return func(*args, session=session, **kwargs)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/www/views.py", line
2665, in grid
dag = get_airflow_app().dag_bag.get_dag(dag_id, session=session)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/session.py",
line 73, in wrapper
return func(*args, **kwargs)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/models/dagbag.py",
line 190, in get_dag
self._add_dag_from_db(dag_id=dag_id, session=session)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/models/dagbag.py",
line 272, in _add_dag_from_db
dag = row.dag
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/models/serialized_dag.py",
line 222, in dag
return SerializedDAG.from_dict(data)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py",
line 1363, in from_dict
return cls.deserialize_dag(serialized_obj["dag"])
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py",
line 1270, in deserialize_dag
v = {task["task_id"]: SerializedBaseOperator.deserialize_operator(task)
for task in v}
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/serialization/serialized_objects.py",
line 1270, in <dictcomp>
v = {task["task_id"]: SerializedBaseOperator.deserialize_operator(task)
for task in v}
KeyError: 'task_id'
172.18.0.1 - - [29/Oct/2024:02:33:38 +0000] "GET
/dags/user_automation_dag/grid HTTP/1.1" 500 1538 "http://localhost:8080/home"
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/130.0.0.0 Safari/537.36"
### What you think should happen instead?
_No response_
### How to reproduce
docker-compose up -d
### Operating System
ubuntu v24
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]