Graceful continuation on NOT_FOUND
還沒有人認領這個 Issue。
評估
研究方向
從 v3.apps 迭代以及報告中顯示的 app.space() 和 space.organization() 呼叫開始,然後追蹤 InvalidStatusCode 回應的處理方式。完成的標準是:對某個 app 或 space 的 NOT_FOUND 可以略過,同時長時間執行的遍歷繼續進行,並且為其餘資源定義行為。
由索引模型根據 Issue 內容生成。
描述
Hi - We are using cf-python-client as part of a task which downloads each app-blob in turn. As we have tens of thousands of containers, this job takes 8-10 hours to complete.
The job is theoretically quite straightforward...
for app in cfClient.v3.apps:
space_name=app.space()['name']
org_name=app.space().organization()['name']
...
More often than not, during the running of this task, we'll encounter an error along the lines of...
cloudfoundry_client.errors.InvalidStatusCode: NOT_FOUND = {"errors": [{"detail": "Space not found", "title": "CF-ResourceNotFound", "code": 10010}]}
or
cloudfoundry_client.errors.InvalidStatusCode: NOT_FOUND = {"errors": [{"detail": "App not found", "title": "CF-ResourceNotFound", "code": 10010}]}
Given the number of orgs/spaces/apps we have in service, it is not too surprising that an app or space which was present at the start of the task is no longer around 6-8 hours later.
When we encounter an error like this we have no options but to restart the 8-10 hour task from the beginning again and hope that it manages to make it through without an error.
I was just wondering if there are any options to allow for more graceful continuation when objects are no longer found? This doesn't seem to be something that I can handle with a try: except: - Are there any options to make errors like this non-fatal?
Cheers!!
- 主要語言
- Python
- 星號
- 55
- 分支
- 53
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cloudfoundry-community/cf-python-client 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 45/100
cloudfoundry-community/cf-python-client#218 · 3 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 35/100
cloudfoundry-community/cf-python-client#180 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 35/100
cloudfoundry-community/cf-python-client#177 · 2 則留言 ·
查看 cloudfoundry-community/cf-python-client 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 66/100
-
[Bug]: Queen's own Ollama model loses num_ctx when a running session switches to it可能已有人在做 @anasamin26 今天認領。 未關閉bug enhancement
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
llm translation
難度 2/5 1-3 小時 新手友好度 78/100
BerriAI/litellm#47884 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug 🐛
難度 2/5 1-3 小時 新手友好度 72/100
netalertx/NetAlertX#1856 · 1 個 reaction ·
維護者通常 1 天內回覆