From d15787caebe3491395bf929916eb5ee9c8de52f9 Mon Sep 17 00:00:00 2001 From: Deeman Date: Wed, 25 Feb 2026 09:33:20 +0100 Subject: [PATCH] =?UTF-8?q?fix(extract):=20recheck=20window=2090=E2=86=926?= =?UTF-8?q?0=20min=20=E2=80=94=20matches=20hourly=20schedule=20and=20min?= =?UTF-8?q?=20slot=20duration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With hourly rechecks and 60-min minimum slots, a 90-min window causes each slot to be queried twice. 60-min window = each slot caught exactly once in the recheck immediately before it starts. Co-Authored-By: Claude Sonnet 4.6 --- .../src/padelnomics_extract/playtomic_availability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract/padelnomics_extract/src/padelnomics_extract/playtomic_availability.py b/extract/padelnomics_extract/src/padelnomics_extract/playtomic_availability.py index 180bcba..def6d3c 100644 --- a/extract/padelnomics_extract/src/padelnomics_extract/playtomic_availability.py +++ b/extract/padelnomics_extract/src/padelnomics_extract/playtomic_availability.py @@ -45,7 +45,7 @@ AVAILABILITY_URL = "https://api.playtomic.io/v1/availability" THROTTLE_SECONDS = 1 MAX_VENUES_PER_RUN = 20_000 MAX_RETRIES_PER_VENUE = 2 -RECHECK_WINDOW_MINUTES = int(os.environ.get("RECHECK_WINDOW_MINUTES", "90")) +RECHECK_WINDOW_MINUTES = int(os.environ.get("RECHECK_WINDOW_MINUTES", "60")) CIRCUIT_BREAKER_THRESHOLD = int(os.environ.get("CIRCUIT_BREAKER_THRESHOLD") or "10") # Parallel mode submits futures in batches so the circuit breaker can stop