From 3ed30b206ce0cae9955ed9eee02a87982cab7280 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 19 Aug 2025 14:00:55 +0500 Subject: [PATCH] api: run device cleanup job 1st of every month --- Notesnook.API/Startup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Notesnook.API/Startup.cs b/Notesnook.API/Startup.cs index b923ce4..a049119 100644 --- a/Notesnook.API/Startup.cs +++ b/Notesnook.API/Startup.cs @@ -233,7 +233,8 @@ namespace Notesnook.API q.AddTrigger(opts => opts .ForJob(jobKey) .WithIdentity("DeviceCleanup-trigger") - .WithSimpleSchedule((s) => s.RepeatForever().WithInterval(TimeSpan.FromDays(30)))); + // first of every month + .WithCronSchedule("0 0 0 1 * ? *")); }); }