You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like to trigger a job, one can do databricks jobs run_now <job_id>
however, if one also wants to provide a json, the job_id info needs to be provided again in --json or the command will fail
databricks jobs run_now <job_id> --json '{"python_params": [...]}' <-- this will fail
databricks jobs run_now <job_id> --json '{"job_id": <job_id>. "python_params": [...]}' <-- this will run fine
The same information is provided twice. It is a bit inconvenient and unclear which one gets used in the end.
The text was updated successfully, but these errors were encountered:
The command can either be run as databricks jobs run_now <job_id> or as databricks jobs run_now --json '{"job_id": <job_id>. "python_params": [...]} (note, positional argument is not needed)
Thanks. This behaviour is not consistent through out the cli though. For example, databricks serving-endpoints update-permissions <endpoint_id> --json <json_payload>, it seems like one has to provide both for it to run. Simply having the id in json but not in the positional argument won't work.
It seems like to trigger a job, one can do
databricks jobs run_now <job_id>
however, if one also wants to provide a json, the job_id info needs to be provided again in --json or the command will fail
databricks jobs run_now <job_id> --json '{"python_params": [...]}'
<-- this will faildatabricks jobs run_now <job_id> --json '{"job_id": <job_id>. "python_params": [...]}'
<-- this will run fineThe same information is provided twice. It is a bit inconvenient and unclear which one gets used in the end.
The text was updated successfully, but these errors were encountered: