From 763342446b8ccbc24c5ae5b7d390d78ebb538663 Mon Sep 17 00:00:00 2001 From: Jonathan Idland Olsnes <73334350+Jonathanio123@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:07:41 +0200 Subject: [PATCH] Run weekly-department-recipients-sync only on monday --- .../Functions/DepartmentResourceOwnerSync.cs | 2 +- .../Functions/WeeklyDepartmentSummarySender.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs b/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs index 27a18114d..2c7bddc0f 100644 --- a/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs +++ b/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs @@ -46,7 +46,7 @@ public DepartmentResourceOwnerSync( /// [FunctionName("weekly-department-recipients-sync")] public async Task RunAsync( - [TimerTrigger("0 05 00 * * *", RunOnStartup = false)] + [TimerTrigger("0 05 00 * * MON", RunOnStartup = false)] TimerInfo timerInfo, CancellationToken cancellationToken ) { diff --git a/src/Fusion.Summary.Functions/Functions/WeeklyDepartmentSummarySender.cs b/src/Fusion.Summary.Functions/Functions/WeeklyDepartmentSummarySender.cs index 6e23e5ec0..39e46ed43 100644 --- a/src/Fusion.Summary.Functions/Functions/WeeklyDepartmentSummarySender.cs +++ b/src/Fusion.Summary.Functions/Functions/WeeklyDepartmentSummarySender.cs @@ -33,7 +33,7 @@ public WeeklyDepartmentSummarySender(ISummaryApiClient summaryApiClient, INotifi } [FunctionName("weekly-department-summary-sender")] - public async Task RunAsync([TimerTrigger("0 0 8 * * 1", RunOnStartup = false)] TimerInfo timerInfo) + public async Task RunAsync([TimerTrigger("0 0 8 * * MON", RunOnStartup = false)] TimerInfo timerInfo) { var departments = await summaryApiClient.GetDepartmentsAsync();