(item: Dict[str, Any])
| 352 | ) |
| 353 | |
| 354 | def _run_endpoint(item: Dict[str, Any]) -> Dict[str, Any]: |
| 355 | return _probe_endpoint( |
| 356 | name=item["name"], |
| 357 | url=item["url"], |
| 358 | method=item.get("method", "GET"), |
| 359 | json_body=item.get("json_body"), |
| 360 | expected_codes=item.get("expected_codes"), |
| 361 | timeout_seconds=timeout_seconds, |
| 362 | proxy_url=proxy_url, |
| 363 | allow_direct_fallback=not proxy_only_mode, |
| 364 | critical=item.get("critical", False), |
| 365 | ) |
| 366 | |
| 367 | checks_indexed: List[Dict[str, Any]] = [] |
| 368 | worker_count = min(4, max(1, len(endpoints))) |
nothing calls this directly
no test coverage detected