Created UserCertificationWorker

This commit is contained in:
Chase Tucker
2024-04-19 15:57:02 -07:00
parent df247bcc86
commit 855990e3e2
4 changed files with 164 additions and 2 deletions

View File

@ -90,6 +90,20 @@ builder.Services.AddQuartz(q => {
.WithIdentity("CA follow up trigger")
.WithCronSchedule(CronScheduleBuilder.DailyAtHourAndMinute(6, 0))
);
JobKey userCertJob = new JobKey("User certification job");
q.AddJob<UserCertificationWorker>(opts => opts
.WithIdentity(userCertJob)
);
q.AddTrigger(opts => opts
.ForJob(userCertJob)
.WithIdentity("User certification trigger")
.WithSimpleSchedule(x => x
.WithIntervalInMinutes(10)
.RepeatForever()
)
.StartNow()
);
});
builder.Services.AddQuartzHostedService(opt => {