Retry Policy - CI/CD用語集の定義
Retry Policy: retry policyとは、失敗した操作をいつ何回retryするかを定義するもので、遅延戦略とどのエラーをretry可能とみなすかを含みます。
retry policyとは、失敗した操作をいつ何回retryするかを定義するもので、遅延戦略とどのエラーをretry可能とみなすかを含みます。
すべての失敗をretryすべきではありません。良いretry policyは、一時的なエラー(timeout、503)と恒久的なエラー(400、認証失敗)を区別し、試行の総数に上限を設けます。
CIにおいて
自分のコードからの4xxでbuildをretryするのは分数の無駄ですが、パッケージregistryからの503でのretryは通常成功します。retryはネットワークやOOMのような一時的で機械的な障害に限定しましょう。
関連ガイド
Exponential Backoff - CI/CD Glossary DefinitionExponential Backoff: Exponential backoff is a retry strategy that doubles the wait between attempts (1s, 2s,…
Idempotency Key - CI/CD Glossary DefinitionIdempotency Key: An idempotency key is a unique client-supplied identifier attached to a request so the serve…
Dead Letter Queue - CI/CD Glossary DefinitionDead Letter Queue: A dead letter queue (DLQ) is a holding queue for messages that could not be processed afte…