Improve a bit workers. bug : Bundle reset after all backtest finish
This commit is contained in:
@@ -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) =>
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
"HeartbeatIntervalSeconds": 30,
|
||||
"StaleJobTimeoutMinutes": 10
|
||||
},
|
||||
"WorkerBundleBacktestHealthCheck": true,
|
||||
"Sentry": {
|
||||
"Dsn": "https://ba7ab16fc3aa445480c115861b4ec8b9@glitch.kai.managing.live/4"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user