HariGS-DB opened a new issue, #46569: URL: https://github.com/apache/airflow/issues/46569
### Apache Airflow version 2.10.4 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? https://github.com/apache/airflow/issues/45138 introduced support for serverless job. It also added a new parameter environment to be set for serverless jobs. In addition to this, the job definition should also contain the environment_key as without that the serverless job submission will fail ### What you think should happen instead? Add validation logic to check: - if the submission is for serverless job execution - check the presence of environment_key in the job definition and raise error if not present - for non serverless job no check required ### How to reproduce submit a databricks task operator to run serverless job (not passing cluster_key or existing_cluster_id but passing environment). In the job definition, leave the environment_key empty and submit, the job should fail ### Operating System macos ### Versions of Apache Airflow Providers _No response_ ### Deployment Official Apache Airflow Helm Chart ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
