ashb commented on issue #51422: URL: https://github.com/apache/airflow/issues/51422#issuecomment-3425739656
Repro case from https://github.com/apache/airflow/issues/56364 ```python from airflow.sdk import DAG, task from datetime import datetime, timedelta default_args = { "depends_on_past": False, "email_on_failure": True, "email_on_retry": False, "retries": 2, "retry_delay": timedelta(seconds=1), } with DAG( "Get_Conn", start_date=datetime(2025, 1, 1), catchup=False, schedule=None, default_args=default_args, ) as dag: @task.virtualenv() def get_conn(): from airflow.sdk import Connection print(Connection.get("test_conn")) get_conn() ``` -- 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]
