From b0915675830a673728751bf76c6284939fb0b6b4 Mon Sep 17 00:00:00 2001 From: Valeriy Sinevich Date: Mon, 10 Jul 2023 08:41:58 +0000 Subject: [PATCH] strat worker revert --- src/WebApi/Program.cs | 2 +- src/WebApi/Workers/StrategusWorker.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/WebApi/Program.cs b/src/WebApi/Program.cs index 9e5e5dd2e2..04e013872f 100644 --- a/src/WebApi/Program.cs +++ b/src/WebApi/Program.cs @@ -46,7 +46,7 @@ .AddSdk(builder.Configuration, appEnv) .AddPersistence(builder.Configuration, appEnv) .AddApplication(builder.Configuration, appEnv) - .AddHostedService() // Disable strategus for now. + // .AddHostedService() Disable strategus for now. .AddHostedService() .AddHostedService() .AddHttpContextAccessor() // Injects IHttpContextAccessor diff --git a/src/WebApi/Workers/StrategusWorker.cs b/src/WebApi/Workers/StrategusWorker.cs index c24e058bb1..598ab078df 100644 --- a/src/WebApi/Workers/StrategusWorker.cs +++ b/src/WebApi/Workers/StrategusWorker.cs @@ -17,9 +17,7 @@ public class StrategusWorker : BackgroundService private static readonly string InstrumentationVersion = AssemblyName.Version!.ToString(); private static readonly ActivitySource ActivitySource = new(InstrumentationName, InstrumentationVersion); private static readonly ILogger Logger = LoggerFactory.CreateLogger(); - // private static readonly TimeSpan TickInterval = TimeSpan.FromMinutes(1); - private static readonly TimeSpan TickInterval = TimeSpan.FromSeconds(20); - + private static readonly TimeSpan TickInterval = TimeSpan.FromMinutes(1); private static readonly Func[] Behaviors = {