Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2021 11:52 AM
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
Labels:
- Labels:
-
Older Version
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2021 01:50 PM
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