Add Story Intelligence worker pause switch

This commit is contained in:
Nick Beckley 2026-07-25 20:56:52 +00:00
parent 02bc4fd2de
commit 0f83f739c5

View File

@ -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>();