yuqian90 opened a new pull request #14416:
URL: https://github.com/apache/airflow/pull/14416
This is to fix the following error that happens when a user clicks on 'Task
Instance Details' for a TaskInstance that has previous TaskInstance not yet run
(e.g. previous instance was marked success without running).
This bug was caused by #12910. It affects Airflow 2.0.0 and 2.0.1.
```python
...
File "/opt/airflow/airflow/utils/session.py", line 65, in wrapper
return func(*args, session=session, **kwargs)
File "/opt/airflow/airflow/models/taskinstance.py", line 826, in
get_previous_start_date
return prev_ti and pendulum.instance(prev_ti.start_date)
File "/usr/local/lib/python3.6/site-packages/pendulum/__init__.py", line
174, in instance
raise ValueError("instance() only accepts datetime objects.")
ValueError: instance() only accepts datetime objects.
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]