astronomer / dag-factory

Dynamically generate Apache Airflow DAGs from YAML configuration files
Apache License 2.0
1.18k stars 179 forks source link

[Bug] v0.20.0 version of dag-factory seems to be broken #275

Open vishakseshadri opened 2 hours ago

vishakseshadri commented 2 hours ago

DAG Factory version

0.20.0

airflow version

2.8.4

Python version

3.11

Deployment

Astronomer

Deployment details

This is on hosted astro cloud version 10.6.0

What happened?

The following error popped up with a new deployment and we noticed dag-factory to have updated -

` Broken DAG: [/usr/local/airflow/dags/dag_factory.py] Traceback (most recent call last): File "/usr/local/lib/python3.11/socket.py", line 827, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/socket.py", line 962, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) httpcore.ConnectError: [Errno -3] Temporary failure in name resolution

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno -3] Temporary failure in name resolution `

Pinning the package to 0.19.0 seems to fix the issue

Relevant log output

No response

How to reproduce

Do a deploy without a pinned version of dag-factory

Anything else :)?

No response

Are you willing to submit PR?

Contact Details

No response

vishakseshadri commented 2 hours ago

This may be an issue specific to version 10.x