mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
If docsbox queue is slow, the DocsboxLib can stop checking the queued document status and raise an error
This commit is contained in:
@@ -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!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user