Skip to content

Commit

Permalink
Register ITT & QTS audit sync jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Jan 2, 2025
1 parent b69bd6f commit 6a60bc0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ public static IHostApplicationBuilder AddBackgroundJobs(this IHostApplicationBui
job => job.ExecuteAsync(CancellationToken.None),
Cron.Never);

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

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

return Task.CompletedTask;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ await trsDataSyncHelper.SyncAuditAsync(
break;
}
}

logger.LogWarning("Synced {Count} contact audit records.", fetched);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ await trsDataSyncHelper.SyncAuditAsync(
break;
}
}

logger.LogWarning("Synced {Count} dfeta_initialteachertraining audit records.", fetched);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ await trsDataSyncHelper.SyncAuditAsync(
break;
}
}

logger.LogWarning("Synced {Count} dfeta_qtsregistration audit records.", fetched);
}
}

0 comments on commit 6a60bc0

Please sign in to comment.