The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user jedcunningham (triggered by jedcunningham).

Head commit for run:
5e6e107f733df9d0130fb0e89d975b35f08fb911 / Josh Fell 
<[email protected]>
Use `cached_property` for hook in SparkKubernetesSensor (#34106)

Best practice to is make constructors of operators/sensors as simple as 
possible. Currently this sensor directly builds a KubernetesHook object in its 
construction. Yes, there are db or external calls when building the hook object 
itself, but:
1. if this hook changes for any reason, these types calls might sneak in
2. doesn't allow for templating of `kubernetes_conn_id` as brought up in 
[Airflow 
Slack](https://apache-airflow.slack.com/archives/CCQ7EGB1P/p1693904864661079)

Report URL: https://github.com/apache/airflow/actions/runs/6087172188

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to