airflow: datetime in parameters cause "TypeError: Object of type set is not JSON serializable"
Apache Airflow version
2.2.2rc1
Operating System
Debian Buster (docker)
Versions of Apache Airflow Providers
n/a
Deployment
Other 3rd-party Helm chart
Deployment details
No response
What happened
The DAG parses and runs fine on 2.1.3, but when we upgrade to the latest version it fails to import:
Broken DAG: [/usr/local/airflow/dags/test_dag.py] Traceback (most recent call last):
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type datetime is not JSON serializable
What you expected to happen
No response
How to reproduce
No response
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project’s Code of Conduct
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (18 by maintainers)
Welp…I think there was some issue in the database I was using. I started over from scratch and cannot reproduce this error either. My bad!