-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DatabricksWorkflowOperator do not update ACL on workflow reset #45738
Comments
@adamgorkaextbi , you haven't explained why it needs to update ACL on workflow reset. If you don't update ACL, does it fail? What's the consequence? |
Maybe I can jump in to answer that question. We are also experiencing the same issue. What happens generally is the Airflow dev forgets to set the correct ACL during the first run, faces a permission issue on the Databricks UI and doesn't understand why its updated ACL configuration doesn't fix the problem. (Usually Airflow workflows/jobs are created using Service Principals which do not grant any rights by default to the group / users). The consequence is not that the job doesn't run, that works well, but if one task fails then the dev isn't able to check the logs to correct the error. |
@hardeybisey , would you like to work on this? |
Sure, I will be happy to pick this up. You can assign it to me. |
When you update permissions in the input JSON, the operator does not apply the changes automatically. You need to update the ACL manually through the UI or by using CLI commands. This lead to bugs and unwanted behavior and manual work |
Apache Airflow Provider(s)
databricks
Versions of Apache Airflow Providers
apache-airflow-providers-databricks==7.0.0
Apache Airflow version
2.10.4
Operating System
Linux
Deployment
Official Apache Airflow Helm Chart
Deployment details
official Helm Chart
What happened
DatabricksWorkflowOperator do not update ACL on workflow reset, this is done only during creation of workflow (Databricks API 2.0 implementation)
one more call is needed to Databricks API 2.0
What you think should happen instead
DatabricksWorkflowOperator on workflow reset should also update ACL in next api call
How to reproduce
try to modify ACL after creation of workflow
Anything else
Proposed solution:
after this line:
airflow/providers/src/airflow/providers/databricks/operators/databricks_workflow.py
Line 179 in 6cde25f
add this code:
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: