Traceback (most recent call last):
File "/Users/xxxxx/IdeaProjects/xxxxxx.py", line 150
print(sub_instance_name, sub_instance.status)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/odps/models/core.py", line 120, in __getattribute__
val = object.__getattribute__(self, attr)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/odps/models/instance.py", line 475, in status
if self._status != Instance.Status.TERMINATED:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/odps/models/core.py", line 124, in __getattribute__
self.reload()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/odps/models/instance.py", line 277, in reload
resp = self._client.get(self.resource())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/odps/rest.py", line 146, in get
return self.request(url, 'get', stream=stream, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/odps/rest.py", line 142, in request
errors.throw_if_parsable(res)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/odps/errors.py", line 75, in throw_if_parsable
raise e
odps.errors.NoSuchObject: NoSuchObject: RequestId: 61E918B783C089A92BFA99D0
ODPS-0424111: Instance not found - '20220120080922302g7tc3yv03_4d5885f6_c656_4642_83f9_4bd78b8d45e8
异常信息如下:
建议的修复方案: 将odps.models.xflows 中 XFlows.get_xflow_sub_instances 方法修改如下: