feat: implement Chatika account activation job for new club members

This commit is contained in:
masoodafar-web
2025-12-23 22:52:49 +03:30
parent 30144a07c8
commit 288b85a59b
10 changed files with 908 additions and 2 deletions
+8
View File
@@ -223,6 +223,14 @@ using (var scope = app.Services.CreateScope())
// Daya Loan Check: Every 15 minutes
CMSMicroservice.WebApi.Workers.DayaLoanCheckWorker.Schedule(recurringJobManager);
app.Logger.LogInformation("✅ Hangfire recurring job 'daya-loan-check' registered (Cron: */15 * * * * - Every 15 minutes)");
// Chatika Account Activation: Every 5 minutes
recurringJobManager.AddOrUpdate<CMSMicroservice.Infrastructure.BackgroundJobs.ChatikaAccountActivationJob>(
recurringJobId: "chatika-account-activation",
methodCall: job => job.ExecuteAsync(CancellationToken.None),
cronExpression: "*/5 * * * *",
options: new RecurringJobOptions { TimeZone = TimeZoneInfo.Utc });
app.Logger.LogInformation("✅ Hangfire recurring job 'chatika-account-activation' registered (Cron: */5 * * * * - Every 5 minutes)");
}
app.Run();