3 weeks ago
Hi there!
I am calling the job list API (via the Python SDK):
GET /api/2.2/jobs/list
docs.databricks.com/api/workspace/jobs/list
Does anyone know what ordering is applied / calculated for the list of jobs?
Is it consistent or random?
Is it by creation time?
Thanks,
Alex
3 weeks ago
3 weeks ago
/api/2.2/jobs/list
does not explicitly define the ordering of jobs in the returned list within the provided documentation. There is no confirmed indication in the referenced materials whether jobs are ordered consistently or by specific fields such as creation time. Hence, it is likely that the ordering could be either random or implementation-dependent."3 weeks ago
Hi Louis,
Thanks very much for the timely and helpful response!
I had a follow up question, if I may.
With the tasks list in the jobs, is that ordered in any particular way eg. creation time etc
Kind regards,
Alex
3 weeks ago
Hey @AlexMc
Per my experience with Rest APIs, the job or task list would be random. I couldn't see if there's any pattern or sorting by runtime or anything.
Thanks,
3 weeks ago
I suspect that if the jobs are random then the tasks within a job will be random too. Louis
3 weeks ago
Thanks both - this was very helpful!
3 weeks ago
If you have a chance pluse "like" and if you are satisfied accept this as a solution. Cheers, Louis.
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now