From 00e50db90c4a03d9f74d1246d0f7ad434cf1e23e Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Mon, 26 Jan 2026 20:29:41 +0100 Subject: [PATCH] Fix startup by assigning the jobFactory manually --- src/Core/Jobs/BaseJobsHostedService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Jobs/BaseJobsHostedService.cs b/src/Core/Jobs/BaseJobsHostedService.cs index 315035a48f..fc937505c8 100644 --- a/src/Core/Jobs/BaseJobsHostedService.cs +++ b/src/Core/Jobs/BaseJobsHostedService.cs @@ -42,8 +42,7 @@ public abstract class BaseJobsHostedService : IHostedService, IDisposable } var schedulerBuilder = SchedulerBuilder.Create() .WithName(fullName) // Ensure each project has a unique instanceName - .WithId("AUTO") - .UseJobFactory(); + .WithId("AUTO"); if (!string.IsNullOrEmpty(_globalSettings.SqlServer.JobSchedulerConnectionString)) { @@ -58,6 +57,7 @@ public abstract class BaseJobsHostedService : IHostedService, IDisposable var factory = schedulerBuilder.Build(); _scheduler = await factory.GetScheduler(cancellationToken); + _scheduler.JobFactory = new JobFactory(_serviceProvider); _scheduler.ListenerManager.AddJobListener(new JobListener(_listenerLogger), GroupMatcher.AnyGroup());