- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2025 07:42 AM
Hello
I have around 150 jobs and this is likely to increase.
I use this call to get all the jobs and write them into a list called json.
My logic here is to match a name to a job id and run the job using the job id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2025 07:53 AM
Please refer to https://docs.databricks.com/api/workspace/jobs/list?
The official documentation for the Jobs API (GET /api/2.2/jobs/list) states that the limit parameter controls how many jobs are returned per call, and the API enforces a cap (100).
Because you have ~150 jobs and may have more later, you should loop over subsequent pages until you've retrieved all jobs. The API supports pagination: the response will include a next_page_token (or an equivalent mechanism) when there are more jobs to fetch.
https://docs.databricks.com/aws/en/reference/jobs-api-2-2-updates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2025 08:33 AM
Thanks. I will try that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2025 12:48 AM
Looping using next_page_token works well, thanks @bianca_unifeye