โ04-24-2025 09:59 AM
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
โ04-25-2025 01:42 PM
โ04-24-2025 10:59 AM
/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."โ04-24-2025 11:52 PM
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
โ04-25-2025 12:37 AM
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,
โ04-25-2025 08:29 AM
I suspect that if the jobs are random then the tasks within a job will be random too. Louis
โ04-25-2025 01:42 PM
Thanks both - this was very helpful!
โ04-25-2025 02:41 PM
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