Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
strat worker revert
Browse files Browse the repository at this point in the history
  • Loading branch information
or2e committed Jul 10, 2023
1 parent e9a309d commit b091567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
.AddSdk(builder.Configuration, appEnv)
.AddPersistence(builder.Configuration, appEnv)
.AddApplication(builder.Configuration, appEnv)
.AddHostedService<StrategusWorker>() // Disable strategus for now.
// .AddHostedService<StrategusWorker>() Disable strategus for now.
.AddHostedService<DonorSynchronizerWorker>()
.AddHostedService<ActivityLogsCleanerWorker>()
.AddHttpContextAccessor() // Injects IHttpContextAccessor
Expand Down
4 changes: 1 addition & 3 deletions src/WebApi/Workers/StrategusWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<StrategusWorker>();
// 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<TimeSpan, IMediatorRequest>[] Behaviors =
{
Expand Down

0 comments on commit b091567

Please sign in to comment.