From 89c0fde4659df9d1b3468a144540c19179a872d9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 22 Nov 2022 21:16:06 +0100 Subject: mod/notification-email: put status in scheduler comment --- mod/notification-email | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/notification-email b/mod/notification-email index 3cff322..799c4ef 100644 --- a/mod/notification-email +++ b/mod/notification-email @@ -22,7 +22,7 @@ :local Scheduler [ /system/scheduler/find where name=$0 ]; :if ([ :len $Scheduler ] > 0 && [ /system/scheduler/get $Scheduler interval ] < 1m) do={ - /system/scheduler/set interval=1m $Scheduler; + /system/scheduler/set interval=1m comment="Doing initial checks..." $Scheduler; } :if ([ /tool/e-mail/get last-status ] = "in-progress") do={ @@ -44,7 +44,7 @@ $LogPrintExit2 warning $0 ("Flushing E-Mail messages from scheduler, but queue is empty.") false; } - /system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") $Scheduler; + /system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") comment="Sending..." $Scheduler; :foreach Id,Message in=$EmailQueue do={ :if ([ :typeof $Message ] = "array" ) do={ @@ -84,7 +84,7 @@ /system/scheduler/remove $Scheduler; :set EmailQueue; } else={ - /system/scheduler/set interval=1m $Scheduler; + /system/scheduler/set interval=1m comment="Waiting for retry..." $Scheduler; } } @@ -124,7 +124,7 @@ attach=($Notification->"attach"); remove-attach=($Notification->"remove-attach") }; :if ([ :len [ /system/scheduler/find where name="\$FlushEmailQueue" ] ] = 0) do={ /system/scheduler/add name="\$FlushEmailQueue" interval=1s start-time=startup \ - on-event=(":global FlushEmailQueue; \$FlushEmailQueue;"); + comment="Queuing new mail..." on-event=(":global FlushEmailQueue; \$FlushEmailQueue;"); } } -- cgit v1.2.3-54-g00ecf