Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using TeachingRecordSystem.Core.Services.DqtReporting;

namespace TeachingRecordSystem.Core.Jobs;

public class BackfillAlertsInReportingDb(ReportingHelper reportingHelper)
{
public async Task ExecuteAsync(CancellationToken cancellationToken)
{
await reportingHelper.BackfillTrsTableAsync("alerts", cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ string GetRecurringJobSchedule(string cronExpression) =>
job => job.ExecuteAsync(CancellationToken.None),
GetRecurringJobSchedule(professionalStatusEmailJobOptions.JobSchedule));

recurringJobManager.AddOrUpdate<BackfillAlertsInReportingDb>(
nameof(BackfillAlertsInReportingDb),
job => job.ExecuteAsync(CancellationToken.None),
Cron.Never);

recurringJobManager.RemoveIfExists("BackfillAlertProcessesJob (dry-run)");
recurringJobManager.RemoveIfExists("BackfillAlertProcessesJob");
recurringJobManager.RemoveIfExists("CreateDqtAnnotationAuditEventsJob");
Expand Down
Loading