cuddly-jelly-27016
03/13/2025, 5:04 PMcreate method of the Databricks agent to use a default databricks instance provided through an environment variable if available and if the users haven't specified an instance themselves.
## How was this patch tested?
The following tests were added:
• Tested that the agent uses an instance provided through env variables if users haven't specified in the task config
• Tested that the agent throws an exception if neither the user or the agent have an instance available.
The changes have also been tested in our own deployed instance of Flyte, and it works as expected.
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
### Summary by Bito
This PR adds support for a default Databricks instance in the Flyte Databricks agent, allowing fallback to an environment variable when not specified in task configuration. The implementation includes proper error handling and enhanced test coverage for both default instance usage and exception scenarios.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 2
flyteorg/flytekitcuddly-jelly-27016
03/13/2025, 9:07 PM