Comments (6)
This is a funny quick with our protobuf serializer. If a repeated is empty then it will not serialize the key at all. Do you want to make a PR? It should be as simple as checking if the API responds without a jobs
key.
from databricks-cli.
Yeah, but my previous attempt to contribute to this project has been completely ignored: #169 so I'll pass
from databricks-cli.
Sorry about that. I'll take a look at that PR...
from databricks-cli.
@andrewmchen Can this be fixed? I can make a PR towards it. Today when I try to use stack_cli to create a job on a brand new workspace with no jobs, it returns KeyError
again when checking if there're duplicate jobs using the Jobs API. When I add a Untitiled
job as placeholder it was successful immediately. Since this is frequently used I think maybe it's worth fixing it.
StackTrace:
File "/Users/andrewli/universe/bazel-bin/eng-tools/etl/db_cli/eng_tools/etl/stack_cli.py", line 307, in deploy
File "/Users/andrewli/universe/bazel-bin/eng-tools/etl/db_cli/eng_tools/etl/stack_cli.py", line 60, in deploy_stack
File "/Users/andrewli/.pex/install/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl.5cf47497201f5d3e15e9328502b026532ab17b5b/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl/databricks_cli/stack/api.py", line 123, in deploy
**kwargs)
File "/Users/andrewli/.pex/install/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl.5cf47497201f5d3e15e9328502b026532ab17b5b/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl/databricks_cli/stack/api.py", line 179, in _deploy_resource
headers=headers)
File "/Users/andrewli/.pex/install/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl.5cf47497201f5d3e15e9328502b026532ab17b5b/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl/databricks_cli/stack/api.py", line 256, in _deploy_job
job_id = self._put_job(job_settings, headers=headers)
File "/Users/andrewli/.pex/install/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl.5cf47497201f5d3e15e9328502b026532ab17b5b/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl/databricks_cli/stack/api.py", line 272, in _put_job
jobs_same_name = self.jobs_client._list_jobs_by_name(job_name, headers=headers)
File "/Users/andrewli/.pex/install/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl.5cf47497201f5d3e15e9328502b026532ab17b5b/databricks_cli-0.8.3.dev0-py2.py3-none-any.whl/databricks_cli/jobs/api.py", line 51, in _list_jobs_by_name
jobs = self.list_jobs(headers=headers)['jobs']
KeyError: 'jobs'
from databricks-cli.
@zhaoxingL Could you try #230?
from databricks-cli.
@andrewmchen I've tested this and it now can return empty list instead of throwing KeyError
with existing workspaces with empty job list. Should be good to merge.
from databricks-cli.
Related Issues (20)
- DEFAULT_METHOD_WHITELIST does not exist anymore HOT 7
- Can't export .sql queries HOT 2
- Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST' HOT 6
- Is the urllib3<2 pin necessary? HOT 4
- Update the upper bound on urllib3 to version 3
- Create Job on Windows results in MALFORMED_REQUEST HOT 3
- Misalignment between Databricks CLI and Databricks APIs - importing generic file to workspace HOT 1
- add sql_params to JobsApi.run_now HOT 3
- Sharing Workspace/my-folder with Service Principal using databricks-cli
- databricks workspace import_dir vs import
- [Question] A question about the future of this Databricks CLI HOT 2
- Databricks workspace import_dir command fails without raising an exception in Azure CI/CD
- Can't get databricks secret value from this api
- Please read this before opening a new issue HOT 1
- Single Node Jobs creation leads to Missing required field: settings.cluster_spec.new_cluster.size Databricks CLI 0.200.2 HOT 6
- databricks bundle command errors on downloading sig file, 443 no route to host HOT 2
- Change default catalog to a unity_catalog doesn't work for clusters HOT 1
- Databricks cli (permissions ) do not work when we use new version HOT 1
- Authenticating with azure clientID and secret does not work for databricks account api HOT 1
- Provide non-github installation download packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from databricks-cli.