diff options
author | Christian Hesse <mail@eworm.de> | 2022-11-22 21:11:50 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-11-22 21:28:26 +0100 |
commit | 03d19270670ae1b4b647ffca37177f92a5db0072 (patch) | |
tree | 3a821d84b16c3d6da3b831f3aad21b33db587f1d /mod/notification-email | |
parent | ab3047ee8210831bd26dfc36df8ed00368c540c0 (diff) |
mod/notification-email: set scheduler interval earlier
... to make sure the checks are not re-run every second.
Diffstat (limited to 'mod/notification-email')
-rw-r--r-- | mod/notification-email | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/notification-email b/mod/notification-email index ea2c40b..3cff322 100644 --- a/mod/notification-email +++ b/mod/notification-email @@ -20,6 +20,10 @@ :local AllDone true; :local QueueLen [ :len $EmailQueue ]; :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; + } :if ([ /tool/e-mail/get last-status ] = "in-progress") do={ $LogPrintExit2 debug $0 ("Sending mail is currently in progress, not flushing.") false; |