Created CertificationTrainingGroupWorker
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user