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.
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.