From 0b6dc342207c4a908d7bedb68f9e75a8d8f723fc Mon Sep 17 00:00:00 2001 From: Paolo Date: Mon, 10 Nov 2025 15:41:01 +0100 Subject: [PATCH 1/2] If docsbox queue is slow, the DocsboxLib can stop checking the queued document status and raise an error --- application/libraries/DocsboxLib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/libraries/DocsboxLib.php b/application/libraries/DocsboxLib.php index f9167c379..31169d579 100644 --- a/application/libraries/DocsboxLib.php +++ b/application/libraries/DocsboxLib.php @@ -157,6 +157,8 @@ class DocsboxLib ->expectsJson() ->send(); + error_log(print_r($getStatusResponse, 1)); + // Checks that: // - the response is not empty // - the reponse body has the property id @@ -180,7 +182,8 @@ class DocsboxLib } // Just started or still working on it elseif ($getStatusResponse->body->status == self::STATUS_WORKING - || $getStatusResponse->body->status == self::STATUS_STARTED) + || $getStatusResponse->body->status == self::STATUS_STARTED + || $getStatusResponse->body->status == self::STATUS_QUEUED) { // go on! } From 1ce362b66bf353abc18b66662c48dd3a778a8c6e Mon Sep 17 00:00:00 2001 From: Paolo Date: Wed, 7 Jan 2026 15:54:59 +0100 Subject: [PATCH 2/2] Removed forgotten error_log --- application/libraries/DocsboxLib.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/application/libraries/DocsboxLib.php b/application/libraries/DocsboxLib.php index 31169d579..184855ad8 100644 --- a/application/libraries/DocsboxLib.php +++ b/application/libraries/DocsboxLib.php @@ -157,8 +157,6 @@ class DocsboxLib ->expectsJson() ->send(); - error_log(print_r($getStatusResponse, 1)); - // Checks that: // - the response is not empty // - the reponse body has the property id