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

Copy internal workflow id to specification before it's cached #966

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inference/core/roboflow_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ def get_workflow_specification(
try:
workflow_config = json.loads(response["workflow"]["config"])
specification = workflow_config["specification"]
if isinstance(specification, dict):
specification["id"] = response["workflow"].get("id")
if use_cache:
_cache_workflow_specification_in_ephemeral_cache(
api_key=api_key,
Expand All @@ -571,8 +573,6 @@ def get_workflow_specification(
specification=specification,
ephemeral_cache=ephemeral_cache,
)
if isinstance(specification, dict):
specification["id"] = response["workflow"].get("id")
return specification
except KeyError as error:
raise MalformedWorkflowResponseError(
Expand Down
2 changes: 1 addition & 1 deletion inference/core/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.35.0rc1"
__version__ = "0.35.0rc2"


if __name__ == "__main__":
Expand Down
Loading