更新: 5 个文件 - 2026-03-18 09:50:04
这个提交包含在:
@@ -53,7 +53,7 @@ def failure_summary(failure: Dict[str, Any]) -> str:
|
||||
return failure.get("summary") or f"{failure.get('system_id')}::{failure.get('source_name')}::{failure.get('category')}::{failure.get('exception')}"
|
||||
|
||||
|
||||
def _build_failure(system: Dict[str, Any], source: Dict[str, Any], exc: Exception) -> Dict[str, Any]:
|
||||
def build_failure(system: Dict[str, Any], source: Dict[str, Any], exc: Exception) -> Dict[str, Any]:
|
||||
response = getattr(exc, "response", None)
|
||||
status_code = getattr(response, "status_code", None)
|
||||
category = _failure_category(exc)
|
||||
@@ -211,7 +211,7 @@ def collect_candidates(
|
||||
if _passes_since(item, since_dt, include_undated):
|
||||
all_candidates.append(item)
|
||||
except Exception as exc:
|
||||
failures.append(_build_failure(system, source, exc))
|
||||
failures.append(build_failure(system, source, exc))
|
||||
return all_candidates, failures
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ def probe_sources(
|
||||
}
|
||||
)
|
||||
except Exception as exc:
|
||||
failures.append(_build_failure(system, source, exc))
|
||||
failures.append(build_failure(system, source, exc))
|
||||
return probes, failures
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户