Add Story Intelligence worker pause switch
This commit is contained in:
parent
02bc4fd2de
commit
0f83f739c5
@ -245,8 +245,11 @@ public class Program
|
||||
builder.Services.AddScoped<ICurrentUserService, CurrentUserService>();
|
||||
builder.Services.AddScoped<IFeatureRequestService, FeatureRequestService>();
|
||||
builder.Services.AddHostedService<EmailQueueWorker>();
|
||||
builder.Services.AddHostedService<StoryIntelligenceWorker>();
|
||||
builder.Services.AddHostedService<PersistedStoryIntelligenceWorker>();
|
||||
if (builder.Configuration.GetValue("StoryIntelligence:WorkersEnabled", true))
|
||||
{
|
||||
builder.Services.AddHostedService<StoryIntelligenceWorker>();
|
||||
builder.Services.AddHostedService<PersistedStoryIntelligenceWorker>();
|
||||
}
|
||||
if (builder.Configuration.GetValue("Illustrations:GenerationWorkerEnabled", true))
|
||||
{
|
||||
builder.Services.AddHostedService<IllustrationGenerationWorker>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user