We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Metadata
FetchAsyncCore
FetchAsync
Task.Status
Faulted
個人的提案としては
ぐらいかなー。数字に根拠はないけど。
ちなみにAmazonMetadataProviderは仕様上ガンガン例外が返ってくるので80ms~1280msでリトライしてます。
AmazonMetadataProvider
The text was updated successfully, but these errors were encountered:
1s, 2s, 4s, 8sのウェイトを置いて最大4回リトライする。
よさそう。でも単純に1,2,4,8とするよりは https://github.com/mperham/sidekiq/wiki/Error-Handling#automatic-job-retry このあたり参考に (retry_count ** 4) + 5 とかの方がよさそう。MoEmbedでは random number の加算は要らないかな…
(retry_count ** 4) + 5
例外発生から5分間有効とする
よさそう
最大n回リトライ、5分間有効の数字は設定可能であるとよさそう
Sorry, something went wrong.
いつも使っているウェイトの取り方はmin(c * f ^ n, max)かな。 Amazonの例だとc = 80ms, f = 2, max = 1280msで計算している。
min(c * f ^ n, max)
c = 80ms
f = 2
max = 1280ms
よさそう。あとはAmazonとかの例考えるとサイト(Metadata)によってその辺り調整できればよさそげ
No branches or pull requests
Metadata
のFetchAsyncCore
でHTTP通信に失敗した場合、正常な結果を返すまで(最大30s程度の間)再試行を行うかどうかFetchAsync
ではキャッシュされているTask.Status
がFaulted
になっているが、そのままキャッシュを返すかどうか。またFaulted
なキャッシュに有効期間を設けるかどうか。個人的提案としては
ぐらいかなー。数字に根拠はないけど。
ちなみに
AmazonMetadataProvider
は仕様上ガンガン例外が返ってくるので80ms~1280msでリトライしてます。The text was updated successfully, but these errors were encountered: