Added scheduler jobs
This commit is contained in:
@@ -22,9 +22,10 @@ public class JobsWorker(IJobOrchestrator jobOrchestrator, IFeatureManager featur
|
||||
await jobOrchestrator.ScheduleAsync(ProcessEmailEvent.Create(), "0 */5 * * * ?", stoppingToken);
|
||||
|
||||
if (await featureManager.IsEnabledAsync(FeatureLateProjectReminder))
|
||||
await jobOrchestrator.ScheduleAsync(LateProjectEvent.Create(), "", stoppingToken);
|
||||
|
||||
// TODO: Add job to check for non-compliant projects once a week
|
||||
await jobOrchestrator.ScheduleAsync(LateProjectEvent.Create(), "0 30 6 * * ?", stoppingToken);
|
||||
|
||||
if (await featureManager.IsEnabledAsync(FeatureNonCompliantProjectCheck))
|
||||
await jobOrchestrator.ScheduleAsync(NonCompliantProjectEvent.Create(), "0 0 7 ? * MON", stoppingToken);
|
||||
|
||||
logger.LogInformation("Recurring jobs have been registered or updated.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user