Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Internal] GetRun logic paginates more arrays #867

Merged
merged 5 commits into from
Feb 13, 2025

Conversation

gkiko10
Copy link
Contributor

@gkiko10 gkiko10 commented Jan 21, 2025

What changes are proposed in this pull request?

The existing code only paginates tasks and iterations. With this PR we update the logic to also paginate job_clusters, job_parameters and repair_history. This changes are needed for Jobs API 2.2 compatibility.

How is this tested?

I enabled API 2.2 calls by modifying URL string /api/2.2/jobs/runs/get in databricks/sdk/service/jobs.py. Then I ran unit test from tests/test_jobs_mixin.py

@gkiko10 gkiko10 temporarily deployed to test-trigger-is January 21, 2025 16:15 — with GitHub Actions Inactive
@gkiko10 gkiko10 temporarily deployed to test-trigger-is January 21, 2025 16:23 — with GitHub Actions Inactive
@renaudhartert-db renaudhartert-db self-requested a review February 3, 2025 14:27
@gkiko10 gkiko10 temporarily deployed to test-trigger-is February 4, 2025 11:55 — with GitHub Actions Inactive
Copy link

github-actions bot commented Feb 4, 2025

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 867
  • Commit SHA: 71d4b6b0435835b10376387cc1a6b0784572b881

Checks will be approved automatically on success.

@parthban-db parthban-db self-requested a review February 10, 2025 12:18
@hectorcast-db hectorcast-db added this pull request to the merge queue Feb 13, 2025
Merged via the queue into databricks:main with commit 75bcfd3 Feb 13, 2025
17 of 18 checks passed
hectorcast-db added a commit that referenced this pull request Feb 13, 2025
### New Features and Improvements

 * Introduce new Credential Strategies for Agents ([#882](#882)).

### Internal Changes

 * GetRun logic paginates more arrays ([#867](#867)).
hectorcast-db added a commit that referenced this pull request Feb 13, 2025
 * Introduce new Credential Strategies for Agents ([#882](#882)).

 * GetRun logic paginates more arrays ([#867](#867)).
github-merge-queue bot pushed a commit that referenced this pull request Feb 13, 2025
### New Features and Improvements

* Introduce new Credential Strategies for Agents
([#882](#882)).

### Bug Fixes

* Fix public documentation

### Internal Changes

* GetRun logic paginates more arrays
([#867](#867)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants