cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Does the Jobs API allow executing an older version of a Notebook using version history?

Anand_Ladda
Honored Contributor II

I see the revision_timestamp paramater on NotebookTask https://docs.databricks.com/dev-tools/api/latest/jobs.html#jobsnotebooktask. An example of how to invoke it would be helpful

1 ACCEPTED SOLUTION

Accepted Solutions

Anand_Ladda
Honored Contributor II

You can use the databricks built in version control feature, coupled with the NotebookTask Jobs API to specify a specific version of the notebook based on the timestamp of the save defined in unix timestamp format

curl -n -X POST -H 'Content-Type: application/json' -d \
'{
  "name": "API Revision Timestamp Test V3",
  "existing_cluster_id": "cluster-id",
  "notebook_task": {
            "notebook_path": "notebookpath",
            "revision_timestamp": "1624048530"
        }
}' https://<databricks-instance>/api/2.0/jobs/create

View solution in original post

1 REPLY 1

Anand_Ladda
Honored Contributor II

You can use the databricks built in version control feature, coupled with the NotebookTask Jobs API to specify a specific version of the notebook based on the timestamp of the save defined in unix timestamp format

curl -n -X POST -H 'Content-Type: application/json' -d \
'{
  "name": "API Revision Timestamp Test V3",
  "existing_cluster_id": "cluster-id",
  "notebook_task": {
            "notebook_path": "notebookpath",
            "revision_timestamp": "1624048530"
        }
}' https://<databricks-instance>/api/2.0/jobs/create

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.