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

Crawler for RunSubmit API usages from External Orchestrators (ADF/Airflow) #364

Closed
wants to merge 7 commits into from

Conversation

zpappa
Copy link

@zpappa zpappa commented Oct 3, 2023

Resolves #266

Added JobRunsCrawler
Added a crawler to look at JobRuns from the SDK and determine which of the job runs are from the RunsSubmit API

Added Unit Tests
Added tests to cover basic logic, further tests pending.

@zpappa zpappa linked an issue Oct 3, 2023 that may be closed by this pull request
5 tasks
@zpappa zpappa changed the title 266 assessment for runsubmit api usages Crawler for RunSubmit API usages from External Orchestrators (ADF/Airflow) Oct 3, 2023
@nfx nfx added this to the 1 week milestone Oct 3, 2023
larsgeorge-db and others added 5 commits October 3, 2023 11:36
Updates the requirements on
[databricks-sdk](https://github.com/databricks/databricks-sdk-py) to
permit the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/databricks/databricks-sdk-py/releases">databricks-sdk's
releases</a>.</em></p>
<blockquote>
<h2>v0.10.0</h2>
<ul>
<li>Respect <code>retry_timeout_seconds</code> config setting and align
retry implementation with Go SDK (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/337">#337</a>).</li>
</ul>
<p>Breaking API Changes:</p>
<ul>
<li>Changed <code>list()</code> method for <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/account/account_metastore_assignments.html">a.account_metastore_assignments</a>
account-level service to return
<code>databricks.sdk.service.catalog.ListAccountMetastoreAssignmentsResponse</code>
dataclass.</li>
<li>Removed <code>owner</code> field for
<code>databricks.sdk.service.catalog.CreateConnection</code>. Instead,
use the <code>owner</code> field of <code>UpdateConnection</code>.</li>
<li>Removed <code>options</code> field for
<code>databricks.sdk.service.catalog.UpdateCatalog</code>.</li>
<li>Changed <code>job_parameters</code> field for
<code>databricks.sdk.service.jobs.RunNow</code> to
<code>databricks.sdk.service.jobs.ParamPairs</code> dataclass.</li>
<li>Changed <code>query()</code> method for <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html">w.serving_endpoints</a>
workspace-level service . New request type is
<code>databricks.sdk.service.serving.QueryEndpointInput</code>
dataclass.</li>
<li>Renamed <code>databricks.sdk.service.serving.QueryRequest</code>
dataclass to <code>QueryEndpointInput</code>.</li>
<li>Changed <code>list()</code> method for <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/workspace/clean_rooms.html">w.clean_rooms</a>
workspace-level service to require request of
<code>databricks.sdk.service.sharing.ListCleanRoomsRequest</code>
dataclass.</li>
</ul>
<p>API Changes:</p>
<ul>
<li>Added
<code>databricks.sdk.service.catalog.ListAccountMetastoreAssignmentsResponse</code>
dataclass.</li>
<li>Added <code>job_parameters</code> field for
<code>databricks.sdk.service.jobs.RepairRun</code>.</li>
<li>Added <code>job_parameters</code> field for
<code>databricks.sdk.service.jobs.RunParameters</code>.</li>
<li>Added <code>notifications</code> field for
<code>databricks.sdk.service.pipelines.CreatePipeline</code>.</li>
<li>Added <code>notifications</code> field for
<code>databricks.sdk.service.pipelines.EditPipeline</code>.</li>
<li>Added <code>notifications</code> field for
<code>databricks.sdk.service.pipelines.PipelineSpec</code>.</li>
<li>Added <code>databricks.sdk.service.pipelines.Notifications</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.serving.DataframeSplitInput</code>
dataclass.</li>
<li>Added <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/workspace/settings.html">w.settings</a>
workspace-level service.</li>
<li>Added
<code>databricks.sdk.service.settings.DefaultNamespaceSetting</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.DeleteDefaultWorkspaceNamespaceRequest</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.DeleteDefaultWorkspaceNamespaceResponse</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.ReadDefaultWorkspaceNamespaceRequest</code>
dataclass.</li>
<li>Added <code>databricks.sdk.service.settings.StringMessage</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.UpdateDefaultWorkspaceNamespaceRequest</code>
dataclass.</li>
<li>Added <code>next_page_token</code> field for
<code>databricks.sdk.service.sharing.ListCleanRoomsResponse</code>.</li>
<li>Added
<code>databricks.sdk.service.sharing.ListCleanRoomsRequest</code>
dataclass.</li>
</ul>
<p>OpenAPI SHA: bcbf6e851e3d82fd910940910dd31c10c059746c, Date:
2023-10-02</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/databricks/databricks-sdk-py/blob/main/CHANGELOG.md">databricks-sdk's
changelog</a>.</em></p>
<blockquote>
<h2>0.10.0</h2>
<ul>
<li>Respect <code>retry_timeout_seconds</code> config setting and align
retry implementation with Go SDK (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/337">#337</a>).</li>
</ul>
<p>Breaking API Changes:</p>
<ul>
<li>Changed <code>list()</code> method for <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/account/account_metastore_assignments.html">a.account_metastore_assignments</a>
account-level service to return
<code>databricks.sdk.service.catalog.ListAccountMetastoreAssignmentsResponse</code>
dataclass.</li>
<li>Removed <code>owner</code> field for
<code>databricks.sdk.service.catalog.CreateConnection</code>. Instead,
use the <code>owner</code> field of <code>UpdateConnection</code>.</li>
<li>Removed <code>options</code> field for
<code>databricks.sdk.service.catalog.UpdateCatalog</code>.</li>
<li>Changed <code>job_parameters</code> field for
<code>databricks.sdk.service.jobs.RunNow</code> to
<code>databricks.sdk.service.jobs.ParamPairs</code> dataclass.</li>
<li>Changed <code>query()</code> method for <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html">w.serving_endpoints</a>
workspace-level service . New request type is
<code>databricks.sdk.service.serving.QueryEndpointInput</code>
dataclass.</li>
<li>Renamed <code>databricks.sdk.service.serving.QueryRequest</code>
dataclass to <code>QueryEndpointInput</code>.</li>
<li>Changed <code>list()</code> method for <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/workspace/clean_rooms.html">w.clean_rooms</a>
workspace-level service to require request of
<code>databricks.sdk.service.sharing.ListCleanRoomsRequest</code>
dataclass.</li>
</ul>
<p>API Changes:</p>
<ul>
<li>Added
<code>databricks.sdk.service.catalog.ListAccountMetastoreAssignmentsResponse</code>
dataclass.</li>
<li>Added <code>job_parameters</code> field for
<code>databricks.sdk.service.jobs.RepairRun</code>.</li>
<li>Added <code>job_parameters</code> field for
<code>databricks.sdk.service.jobs.RunParameters</code>.</li>
<li>Added <code>notifications</code> field for
<code>databricks.sdk.service.pipelines.CreatePipeline</code>.</li>
<li>Added <code>notifications</code> field for
<code>databricks.sdk.service.pipelines.EditPipeline</code>.</li>
<li>Added <code>notifications</code> field for
<code>databricks.sdk.service.pipelines.PipelineSpec</code>.</li>
<li>Added <code>databricks.sdk.service.pipelines.Notifications</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.serving.DataframeSplitInput</code>
dataclass.</li>
<li>Added <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/workspace/settings.html">w.settings</a>
workspace-level service.</li>
<li>Added
<code>databricks.sdk.service.settings.DefaultNamespaceSetting</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.DeleteDefaultWorkspaceNamespaceRequest</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.DeleteDefaultWorkspaceNamespaceResponse</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.ReadDefaultWorkspaceNamespaceRequest</code>
dataclass.</li>
<li>Added <code>databricks.sdk.service.settings.StringMessage</code>
dataclass.</li>
<li>Added
<code>databricks.sdk.service.settings.UpdateDefaultWorkspaceNamespaceRequest</code>
dataclass.</li>
<li>Added <code>next_page_token</code> field for
<code>databricks.sdk.service.sharing.ListCleanRoomsResponse</code>.</li>
<li>Added
<code>databricks.sdk.service.sharing.ListCleanRoomsRequest</code>
dataclass.</li>
</ul>
<p>OpenAPI SHA: bcbf6e851e3d82fd910940910dd31c10c059746c, Date:
2023-10-02</p>
<h2>0.9.0</h2>
<ul>
<li>Don't try to import runtime_auth when not in runtime (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/327">#327</a>).</li>
<li>Handled Azure authentication when WorkspaceResourceID is provided
(<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/328">#328</a>).</li>
<li>Added ErrorInfo to API errors (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/347">#347</a>).</li>
<li>Fixed eager default argument evaluation in
<code>DatabricksError</code> (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/353">#353</a>).</li>
<li>Fixed code generation of primitive types (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/354">#354</a>).</li>
<li>Updated SDK to changes in OpenAPI specification (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/pull/355">#355</a>).</li>
</ul>
<p>API Changes:</p>
<ul>
<li>Changed <code>list()</code> method for <a
href="https://databricks-sdk-py.readthedocs.io/en/latest/account/account_metastore_assignments.html">a.account_metastore_assignments</a>
account-level service to return
<code>databricks.sdk.service.catalog.WorkspaceIdList</code>
dataclass.</li>
<li>Changed <code>artifact_matchers</code> field for
<code>databricks.sdk.service.catalog.ArtifactAllowlistInfo</code> to
<code>databricks.sdk.service.catalog.ArtifactMatcherList</code>
dataclass.</li>
<li>Changed <code>artifact_matchers</code> field for
<code>databricks.sdk.service.catalog.SetArtifactAllowlist</code> to
<code>databricks.sdk.service.catalog.ArtifactMatcherList</code>
dataclass.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/databricks/databricks-sdk-py/commit/90f6fab2d874180d36a2f1ee811ae9c19a2bc65f"><code>90f6fab</code></a>
Release v0.10.0 (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/issues/372">#372</a>)</li>
<li><a
href="https://github.com/databricks/databricks-sdk-py/commit/bbe81c13c4a0275020d241b78f61cdddf349adc2"><code>bbe81c1</code></a>
Update OpenAPI spec to 2 Oct 2023 (<a
href="https://redirect.github.com/databricks/databricks-sdk-py/issues/373">#373</a>)</li>
<li><a
href="https://github.com/databricks/databricks-sdk-py/commit/6254119a641e3a9f68a62ea838bd43f1d883f022"><code>6254119</code></a>
Respect <code>retry_timeout_seconds</code> config setting and align
retry implementation...</li>
<li>See full diff in <a
href="https://github.com/databricks/databricks-sdk-py/compare/v0.9.0...v0.10.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@zpappa zpappa closed this Oct 3, 2023
@zpappa zpappa deleted the 266-assessment-for-runsubmit-api-usages branch October 3, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Assessment for RunSubmit API usages
3 participants