ProductionForecastService.ForecastGeneration

// Id: #184977
using EnergyDataHub.Data.Services;

var productionForecastService = Activate<ProductionForecastService>();
await productionForecastService.ForecastGeneration(
    FromJson<Location>("{\"Id\":2,\"Guid\":\"f95a7c96-c6f4-43a8-9b14-28087f7c8887\",\"Name\":\"Tijarica\",\"Latitude\":43.586667,\"Longitude\":16.920472,\"Country\":null,\"CountryId\":5,\"WeatherData\":null}"),
    <VALUE IS TOO BIG>,
    FromJson<ForecastLocationSettings>("{\"WeatherProvider\":1,\"LocationName\":\"Tijarica\",\"InstallationYear\":2019,\"ModelPath\":\"/root/predcition/models/X_Kosore_model.keras\",\"ScalerPath\":\"/root/predcition/models/X_Kosore_scaler.gz\",\"OutputFactor\":0.666666}"));

Parameters

CurrentCulture
""
CurrentUICulture
""

State

03/24/2026 07:15:52 (+6.779s) Failed

An exception occurred during performance of the job.

System.Exception (edh:1332730)

Forecast script failed with exit code 1

System.Exception: Forecast script failed with exit code 1
   at EnergyDataHub.Data.Services.ProductionForecastService.RunForecastScript(ForecastLocationSettings forecastSettings, String predictorsPath)
   at EnergyDataHub.Data.Services.ProductionForecastService.Forecast(Location location, IPredictionInput weatherForecastDto, ForecastLocationSettings forecastSettings, IProductionForecastStorageService storageService)
   at EnergyDataHub.Data.Services.ProductionForecastService.ForecastGeneration(Location location, XWeatherResponse weatherForecastDto, ForecastLocationSettings forecastSettings)
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+1h 6m Processing

Server:
edh:1332730
Worker:
77956b55

+22ms Enqueued

03/24/2026 06:08:47 Created