If docsbox queue is slow, the DocsboxLib can stop checking the queued document status and raise an error

This commit is contained in:
Paolo
2025-11-10 15:41:01 +01:00
parent 1ac9c9b6cb
commit 0b6dc34220
+4 -1
View File
@@ -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!
}