From 6eecc68fcf9dc81aebb0ae613406af6448a3ba1c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2025 18:01:28 +0200 Subject: [PATCH] backup-cloud: fail if global functions do not become ready Co-authored-by: Ilya Kulakov --- backup-cloud.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup-cloud.rsc b/backup-cloud.rsc index c4e23b2a..d8419ce8 100644 --- a/backup-cloud.rsc +++ b/backup-cloud.rsc @@ -10,7 +10,8 @@ # https://rsc.eworm.de/doc/backup-cloud.md :global GlobalFunctionsReady; -:while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:onerror e { :retry { :if ($GlobalFunctionsReady != true) \ + do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; }; :local ExitOK false; :do {