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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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
Copy link

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: 81545c091a1a37180119306081ead149e0331e79

Checks will be approved automatically on success.

@gkiko10 gkiko10 temporarily deployed to test-trigger-is January 21, 2025 16:23 — with GitHub Actions Inactive
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.

1 participant