This gist contains some example bash scripts for triggering and awaiting a one-time job run using existing Databricks CLI APIs.
Rough edges include:
- Parameter substitution into job JSON (need to implement this ourselves)
- Writing logic to trigger and await job status
- Updatability of shell script logic. Any customers that rely on this script would need to update it themselves, whereas updates could easily be pushed to an existing
databricks runs submit
CLI command with a--wait
option (e.g. updating the default job polling interval). However, since we use the Databricks CLI for all API requests, any security/auth patches can be fetched by updating the version of the CLI used in the script.
#2 can be addressed through a --wait
option to databricks runs submit
. #1 requires implementing parameter
substitution and so may be more work, but also isn't as complex - there isn't any branching logic to test, just
that parameters are properly passed through.
Notably, DBX already supports #1 (see docs)