brki commented on issue #60598: URL: https://github.com/apache/airflow/issues/60598#issuecomment-3761850684
@jroachgolf84 I tried, it seems to be the same as on a worker. ``` from airflow.providers.mysql.hooks.mysql import MySqlHook hook = MySqlHook(mysql_conn_id="my_conn_id") engine = hook.get_sqlalchemy_engine() ``` This results in ``` airflow.exceptions.AirflowNotFoundException: The conn_id my_conn_id isn't defined ``` Even though the same code works when run in a `PythonOperator`. -- 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]
