mirror of https://github.com/databricks/cli.git
75d516939b
Adds check for whether file exists locally case 1: local (relative) file does not exist ``` foo: name: "[job-output] test-job by shreyas" tasks: - task_key: my_notebook_task existing_cluster_id: *** notebook_task: notebook_path: "./doesnotexist" ``` output: ``` shreyas.goenka@THW32HFW6T job-output % bricks bundle deploy Error: notebook ./doesnotexist not found. Error: open /Users/shreyas.goenka/projects/job-output/doesnotexist: no such file or directory ``` case 2: remote (absolute) file does not exist ``` foo: name: "[job-output] test-job by shreyas" tasks: - task_key: my_notebook_task existing_cluster_id: *** notebook_task: notebook_path: "/Users/shreyas.goenka@databricks.com/doesnotexist" ``` output: ``` shreyas.goenka@THW32HFW6T job-output % bricks bundle deploy shreyas.goenka@THW32HFW6T job-output % bricks bundle run foo Error: failed to reach TERMINATED or SKIPPED, got INTERNAL_ERROR: Task my_notebook_task failed with message: Notebook not found: /Users/shreyas.goenka@databricks.com/doesnotexist. This caused all downstream tasks to get skipped. ``` case 3: remote exists Successful deploy and run |
||
---|---|---|
.. | ||
default_environment.go | ||
default_environment_test.go | ||
default_include.go | ||
default_include_test.go | ||
default_workspace_paths.go | ||
default_workspace_paths_test.go | ||
default_workspace_root.go | ||
default_workspace_root_test.go | ||
expand_workspace_root.go | ||
expand_workspace_root_test.go | ||
mutator.go | ||
populate_current_user.go | ||
populate_current_user_test.go | ||
process_include.go | ||
process_include_test.go | ||
process_root_includes.go | ||
process_root_includes_test.go | ||
select_default_environment.go | ||
select_default_environment_test.go | ||
select_environment.go | ||
select_environment_test.go | ||
translate_notebook_paths.go | ||
translate_notebook_paths_test.go |