fix: update Seq ServerUrl and change Hangfire job timezone to local - Adjusted Seq server URL for production and modified recurring job options to use local timezone

This commit is contained in:
masoodafar-web
2025-12-27 01:14:31 +03:30
parent fce194a195
commit 81d2b39ee1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -215,7 +215,7 @@ using (var scope = app.Services.CreateScope())
cronExpression: "5 0 * * 0", // Sunday at 00:05 cronExpression: "5 0 * * 0", // Sunday at 00:05
options: new RecurringJobOptions options: new RecurringJobOptions
{ {
TimeZone = TimeZoneInfo.Utc TimeZone = TimeZoneInfo.Local
}); });
app.Logger.LogInformation("✅ Hangfire recurring job 'weekly-commission-calculation' registered (Cron: 5 0 * * 0 - Sunday 00:05 UTC)"); app.Logger.LogInformation("✅ Hangfire recurring job 'weekly-commission-calculation' registered (Cron: 5 0 * * 0 - Sunday 00:05 UTC)");
@@ -229,7 +229,7 @@ using (var scope = app.Services.CreateScope())
recurringJobId: "chatika-account-activation", recurringJobId: "chatika-account-activation",
methodCall: job => job.ExecuteAsync(CancellationToken.None), methodCall: job => job.ExecuteAsync(CancellationToken.None),
cronExpression: "*/5 * * * *", cronExpression: "*/5 * * * *",
options: new RecurringJobOptions { TimeZone = TimeZoneInfo.Utc }); options: new RecurringJobOptions { TimeZone = TimeZoneInfo.Local });
app.Logger.LogInformation("✅ Hangfire recurring job 'chatika-account-activation' registered (Cron: */5 * * * * - Every 5 minutes)"); app.Logger.LogInformation("✅ Hangfire recurring job 'chatika-account-activation' registered (Cron: */5 * * * * - Every 5 minutes)");
} }
@@ -66,7 +66,7 @@
"Audience": "domain_api" "Audience": "domain_api"
}, },
"Seq": { "Seq": {
"ServerUrl": "https://seq.afrino.co", "ServerUrl": "http://seq-svc:5341",
"ApiKey": "oxpvpUzU1pZxMS4s3Fqq" "ApiKey": "oxpvpUzU1pZxMS4s3Fqq"
} }
} }