You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect to be able to print the response of the list_workflows method in the Python SDK successfully.
import time
import argo_workflows
from argo_workflows.api import workflow_service_api
with argo_workflows.ApiClient(self.configuration) as api_client:
api_instance = workflow_service_api.WorkflowServiceApi(api_client)
api_response = api_instance.list_workflows(self._NAMESPACE, _check_return_type=False)
print(api_response)
File "/Users/rajaiealkorani/repos/crawl/venv/lib/python3.9/site-packages/argo_workflows/model_utils.py", line 175, in __repr__
return self.to_str()
File "/Users/rajaiealkorani/repos/crawl/venv/lib/python3.9/site-packages/argo_workflows/model_utils.py", line 516, in to_str
return pprint.pformat(self.to_dict())
File "/Users/rajaiealkorani/repos/crawl/venv/lib/python3.9/site-packages/argo_workflows/model_utils.py", line 512, in to_dict
return model_to_dict(self, serialize=False)
File "/Users/rajaiealkorani/repos/crawl/venv/lib/python3.9/site-packages/argo_workflows/model_utils.py", line 1661, in model_to_dict
res.append(model_to_dict(v, serialize=serialize))
File "/Users/rajaiealkorani/repos/crawl/venv/lib/python3.9/site-packages/argo_workflows/model_utils.py", line 1633, in model_to_dict
if model_instance._composed_schemas:
AttributeError: 'dict' object has no attribute '_composed_schemas'
This error doesn't show up if there are 0 workflows.
Version
v6.4.1 of the Python SDK
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
the presence of any workflows (running, failed, completed, etc...) causes this issue
Logs from the workflow controller
not relevant
Logs from in your workflow's wait container
not relevant
The text was updated successfully, but these errors were encountered:
rajaie-sg
changed the title
Python SDK list_workflows break when Workflow in progress
Printing response of Python SDK list_workflows methods returns an error
Oct 7, 2022
Pre-requisites
:latest
What happened/what you expected to happen?
I expect to be able to print the response of the list_workflows method in the Python SDK successfully.
This error doesn't show up if there are 0 workflows.
Version
v6.4.1 of the Python SDK
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
the presence of any workflows (running, failed, completed, etc...) causes this issue
Logs from the workflow controller
not relevant
Logs from in your workflow's wait container
not relevant
The text was updated successfully, but these errors were encountered: