From 917c08d37484506365bf3b4f2ef3d103f5ea50b8 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Mon, 15 Apr 2024 12:07:31 +0100 Subject: [PATCH] Tweak TrsDataSyncService config for more reliability --- .../Services/TrsDataSync/TrsDataSyncService.cs | 2 +- .../src/TeachingRecordSystem.Worker/appsettings.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/TrsDataSync/TrsDataSyncService.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/TrsDataSync/TrsDataSyncService.cs index a129ad729..0c03f9719 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/TrsDataSync/TrsDataSyncService.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/TrsDataSync/TrsDataSyncService.cs @@ -23,7 +23,7 @@ public class TrsDataSyncService( { BackoffType = DelayBackoffType.Exponential, Delay = TimeSpan.FromSeconds(30), - MaxRetryAttempts = 3 + MaxRetryAttempts = 10 }) .Build(); diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Worker/appsettings.json b/TeachingRecordSystem/src/TeachingRecordSystem.Worker/appsettings.json index 578144d89..13409ce24 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Worker/appsettings.json +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Worker/appsettings.json @@ -73,10 +73,9 @@ "RefreshEstablishmentsJobSchedule": "0 2 * * *" }, "TrsSyncService": { - "PollIntervalSeconds": 300, + "PollIntervalSeconds": 60, "ModelTypes": [ - "Person", - "MandatoryQualification" + "Person" ], "IgnoreInvalidData": false, "RunService": false