Created UserCertificationWorker
This commit is contained in:
@ -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 => {
|
||||
|
Reference in New Issue
Block a user