databricks-cli/bundle/run
shreyas-goenka f93b541b63
Show detailed error logs for jobs (#209)
PR for how to render errors on console for jobs. 
Here is the bundle used for the logs below:
```
bundle:
  name: deco-438

workspace:
  host: https://adb-309687753508875.15.azuredatabricks.net

resources:
  jobs:
    foo:
      name: "[${bundle.name}][${bundle.environment}] a test notebook"

      tasks:
        - task_key: alpha
          existing_cluster_id: 1109-115254-ox7poobk
          notebook_task:
            notebook_path: "/Users/shreyas.goenka@databricks.com/[deco-438] invalid notebook"
        - task_key: beta
          existing_cluster_id: 1109-115254-ox7poobk
          notebook_task:
            notebook_path: "/does-not-exist"
        - task_key: gamma
          existing_cluster_id: 1109-115254-ox7poobk
          notebook_task:
            notebook_path: "/Users/shreyas.goenka@databricks.com/[deco-438] valid notebook"
```

And this is a screenshot of the logs from the console:
<img width="1057" alt="Screenshot 2023-02-17 at 7 12 29 PM"
src="https://user-images.githubusercontent.com/88374338/219744768-ab7f1e79-db8f-466a-ad6d-f2b6f85ed17c.png">

Here are the logs when only tasks gamma is executed (successfully):
<img width="1059" alt="Screenshot 2023-02-17 at 7 13 04 PM"
src="https://user-images.githubusercontent.com/88374338/219744992-011d8b91-ec1d-44f0-a849-83c81816dd9f.png">


TODO: Investigate more possible job errors, and make sure state for them
is handled in a robust way here
2023-02-20 23:40:14 +01:00
..
job.go Show detailed error logs for jobs (#209) 2023-02-20 23:40:14 +01:00
keys.go Complete positional argument to bundle run (#220) 2023-02-20 21:55:06 +01:00
keys_test.go Complete positional argument to bundle run (#220) 2023-02-20 21:55:06 +01:00
options.go Define flags for running jobs and pipelines (#146) 2022-12-23 15:17:16 +01:00
pipeline.go Define flags for running jobs and pipelines (#146) 2022-12-23 15:17:16 +01:00
runner.go Define flags for running jobs and pipelines (#146) 2022-12-23 15:17:16 +01:00
runner_test.go Run command must always take a single argument (#156) 2022-12-22 16:19:38 +01:00