Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/config/provider-limits.json
Original file line number Diff line number Diff line change
Expand Up @@ -3648,7 +3648,7 @@
"limit_proof": "Public UK Environment Agency real-time flood-monitoring REST API (environment.data.gov.uk/flood-monitoring); open data under the Open Government Licence with no requirement for registration per the API's own documentation, no authentication or API key required for any endpoint, no rate-limit headers returned in observed responses, no documented request quota on the API reference page (only a caching/availability note, no hard cap).",
"probe": {
"method": "GET",
"timeout_ms": 15000
"timeout_ms": 25000
}
},
"dogceo": {
Expand Down
4 changes: 3 additions & 1 deletion src/jobs/provider-health.job.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Redis from 'ioredis';
import { PrismaClient } from '@prisma/client';

Check failure on line 2 in src/jobs/provider-health.job.ts

View workflow job for this annotation

GitHub Actions / CodeQL Analysis (javascript-typescript)

Module '"@prisma/client"' has no exported member 'PrismaClient'.

Check failure on line 2 in src/jobs/provider-health.job.ts

View workflow job for this annotation

GitHub Actions / CodeQL Analysis (javascript-typescript)

Module '"@prisma/client"' has no exported member 'PrismaClient'.
import { logger } from '../config/logger';
import providerLimitsConfig from '../config/provider-limits.json';
import {
Expand Down Expand Up @@ -72,7 +72,9 @@
// initial-probe timeout above the 5s default (gdelt/semanticscholar below),
// but never past this ceiling — an unbounded per-provider override would
// turn one slow provider into a tick that never finishes.
const MAX_PROBE_TIMEOUT_MS = 15000;
// INC-b0353f: uk-ea-flood-monitoring requires 25s (HEAD/GET can take 20+s due to
// slow TLS handshake). Measured latency: up to 21.8s for HEAD, 15-20s for GET.
const MAX_PROBE_TIMEOUT_MS = 25000;
const REDIS_HEALTH_TTL = 7200; // 2 hours
const REDIS_LIMITS_TTL = 7200;

Expand Down Expand Up @@ -1026,7 +1028,7 @@

const targets = selectProbeTargets(
asapProviders,
queueRows.map((r) => r.provider),

Check failure on line 1031 in src/jobs/provider-health.job.ts

View workflow job for this annotation

GitHub Actions / CodeQL Analysis (javascript-typescript)

Parameter 'r' implicitly has an 'any' type.

Check failure on line 1031 in src/jobs/provider-health.job.ts

View workflow job for this annotation

GitHub Actions / CodeQL Analysis (javascript-typescript)

Parameter 'r' implicitly has an 'any' type.
PROBE_K,
);

Expand Down
Loading