mod/notification-email: $FlushEmailQueue: return on purge

This commit is contained in:
Christian Hesse 2024-12-11 10:59:37 +01:00
parent 009a6bd762
commit 5310673152

View file

@ -114,6 +114,12 @@
:return true;
}
:if ([ :len [ /system/scheduler/find where name="_FlushEmailQueue" ] ] = 0 && \
[ :typeof $EmailQueue ] = "nothing") do={
$LogPrint info $0 ("Queue was purged? Exiting.");
:return false;
}
/system/scheduler/set interval=(($SchedVal->"run-count") . "m") \
comment="Waiting for retry..." $Scheduler;
} on-error={