Skip to content

Commit

Permalink
Update dependency cognite-sdk to v7.67.2 (#1223)
Browse files Browse the repository at this point in the history
* Update dependency cognite-sdk to v7.66.1

* Update dependency cognite-sdk to v7.67.2

* build: poetry update

* fix: sdk bug

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: anders-albert <[email protected]>
  • Loading branch information
renovate[bot] and doctrino authored Nov 23, 2024
1 parent 61f9ce7 commit 0739b87
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 116 deletions.
4 changes: 3 additions & 1 deletion cognite_toolkit/_cdf_tk/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from cognite.client.data_classes.workflows import (
FunctionTaskParameters,
WorkflowExecutionDetailed,
WorkflowVersion,
WorkflowVersionId,
WorkflowVersionUpsert,
)
Expand Down Expand Up @@ -758,7 +759,8 @@ def run_workflow(
if not wait:
return True

workflow = ToolGlobals.toolkit_client.workflows.versions.retrieve(id_.workflow_external_id, id_.version)
# Bug in SDK, missing overload method for retrieve.
workflow = cast(WorkflowVersion | None, ToolGlobals.toolkit_client.workflows.versions.retrieve(id_))
if workflow is None:
raise ToolkitMissingResourceError(f"Could not find workflow {id_!r}")

Expand Down
Loading

0 comments on commit 0739b87

Please sign in to comment.