Improve a bit workers. bug : Bundle reset after all backtest finish

This commit is contained in:
2025-11-11 05:30:40 +07:00
parent c6becb032b
commit 8a27155418
11 changed files with 198 additions and 18 deletions

View File

@@ -207,6 +207,13 @@ var host = hostBuilder
{
services.AddHostedService<GeneticComputeWorker>();
}
// Register the bundle backtest health check worker if enabled
var isBundleHealthCheckEnabled = configuration.GetValue<bool>("WorkerBundleBacktestHealthCheck", false);
if (isBundleHealthCheckEnabled)
{
services.AddHostedService<BundleBacktestHealthCheckWorker>();
}
})
.ConfigureLogging((hostingContext, logging) =>
{

View File

@@ -20,6 +20,7 @@
"HeartbeatIntervalSeconds": 30,
"StaleJobTimeoutMinutes": 10
},
"WorkerBundleBacktestHealthCheck": true,
"Sentry": {
"Dsn": "https://ba7ab16fc3aa445480c115861b4ec8b9@glitch.kai.managing.live/4"
},