- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 10:59 AM
"The response from the Databricks Jobs API
/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."Louis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 01:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.