diff options
author | Christian Hesse <mail@eworm.de> | 2020-12-10 09:53:43 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-12-10 09:53:43 +0100 |
commit | 158c27e293eccc07a235883443277a15abee9b64 (patch) | |
tree | 98f73ea11a6c906858286e7b1433193540decea2 /global-functions | |
parent | adf35f3b16d0630785d5aa00420c03da6d5ba7ea (diff) |
global-functions: $FlushTelegramQueue: log warning on empty queue...
... if scheduler exists.
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions index fadd2c6..0530564 100644 --- a/global-functions +++ b/global-functions @@ -291,6 +291,11 @@ :local AllDone true; :local QueueLen [ :len $TelegramQueue ]; + + :if ([ :len [ / system scheduler find where name="FlushTelegramQueue" ] ] > 0 && $QueueLen = 0) do={ + $LogPrintExit warning ("Flushing Telegram messages from scheduler, but queue is empty.") false; + } + :foreach Id,Message in=$TelegramQueue do={ :if ([ :typeof $Message ] = "array" ) do={ :do { |