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

11
run.ps1 Normal file
View file

@ -0,0 +1,11 @@
# PowerShell startup script for predictor service
# Sets required environment variables and starts the service
$env:GSN_PREDICTOR_GRIB_DIR = "C:/tmp/grib"
$env:GSN_PREDICTOR_GRIB_TTL = "48h" # Allow datasets up to 48 hours old
Write-Host "Starting predictor service with GRIB directory: $env:GSN_PREDICTOR_GRIB_DIR" -ForegroundColor Green
Write-Host "Dataset TTL: $env:GSN_PREDICTOR_GRIB_TTL" -ForegroundColor Green
# Run the service
go run cmd/api/main.go