Created CertificationTrainingGroupWorker

This commit is contained in:
Chase Tucker
2024-04-22 13:01:39 -07:00
parent 855990e3e2
commit 91a15a32b6
6 changed files with 235 additions and 102 deletions

View File

@ -91,13 +91,13 @@ builder.Services.AddQuartz(q => {
.WithCronSchedule(CronScheduleBuilder.DailyAtHourAndMinute(6, 0))
);
JobKey userCertJob = new JobKey("User certification job");
q.AddJob<UserCertificationWorker>(opts => opts
JobKey userCertJob = new JobKey("Certification training group job");
q.AddJob<CertificationTrainingGroupWorker>(opts => opts
.WithIdentity(userCertJob)
);
q.AddTrigger(opts => opts
.ForJob(userCertJob)
.WithIdentity("User certification trigger")
.WithIdentity("Certification training group trigger")
.WithSimpleSchedule(x => x
.WithIntervalInMinutes(10)
.RepeatForever()