added simulate stages. Changed GSN_PREDICTOR_GRIB_TTL to 48h

This commit is contained in:
afanasyev.aa 2025-12-09 18:25:16 +09:00
parent c4f355a32e
commit fe207f3fab
21 changed files with 978 additions and 137 deletions

23
force_update.bat Normal file
View file

@ -0,0 +1,23 @@
@echo off
REM Batch script to force download fresh GRIB data
REM This deletes old cube files and downloads the latest dataset
echo Forcing fresh GRIB data download...
echo.
REM Set environment
set GSN_PREDICTOR_GRIB_DIR=C:\tmp\grib
set GSN_PREDICTOR_GRIB_TTL=72h
REM Delete old cube files to force fresh download
echo Deleting old cube files...
del /Q C:\tmp\grib\*.cube 2>nul
echo.
echo Starting service to download fresh data...
echo This will download from S3 (may take several minutes)
echo Press Ctrl+C once download completes and you see "initial GRIB update complete"
echo.
REM Run the service - it will download fresh data on startup
go run cmd/api/main.go