ENG-2299: Add Databricks notebook run trigger - #76
Open
kaustav98255 wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bhuvansingla
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for submitting Databricks notebook runs through the Paradime CLI using the
runs/submitAPI.Changes
New Files
paradime/core/scripts/databricks_notebook.py— Core implementation for Databricks notebook operations:trigger_databricks_notebooks()— Submits multiple notebook runs in parallel viaThreadPoolExecutor_run_notebook()— Submits a single notebook run via POST to/api/2.1/jobs/runs/submitwithnotebook_taskconfiguration_wait_for_run()— Polls run status every 5 seconds viaGET /api/2.1/jobs/runs/getuntil terminal state_get_run_url()— Retrieves therun_page_urlfrom the Databricks APIparadime/cli/integrations/databricks_notebook.py— CLI command definition for Databricks notebook triggerModified Files
paradime/cli/run.py— Registereddatabricks_notebook_triggercommandCLI Commands
databricks-notebook-trigger— Submit Databricks notebook runsImplementation Details
Authorization: Bearer {token}headerruns/submitAPI 2.1 (one-time runs, no job definition needed)notebook_taskwithnotebook_pathand optionalbase_parameterson an existing clusterlife_cycle_stateandresult_stateevery 5 seconds viaGET /api/2.1/jobs/runs/getTERMINATEDwith result:SUCCESS,FAILED,TIMEDOUT,CANCELEDDATABRICKS_HOST,DATABRICKS_TOKENviaenv_click_optionrequestslibrary