mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Queue Better exception handling
This commit is contained in:
parent
d9e23d3d3d
commit
6c32f33838
@ -11,6 +11,7 @@ namespace humhub\modules\queue\helpers;
|
||||
use Yii;
|
||||
use yii\base\BaseObject;
|
||||
use yii\base\InvalidArgumentException;
|
||||
use yii\base\InvalidParamException;
|
||||
use yii\queue\Queue;
|
||||
use humhub\modules\queue\interfaces\ExclusiveJobInterface;
|
||||
use humhub\modules\queue\models\QueueExclusive;
|
||||
@ -38,6 +39,9 @@ class QueueHelper extends BaseObject
|
||||
} catch (InvalidArgumentException $ex) {
|
||||
// not exists
|
||||
$jobInQueue = false;
|
||||
} catch (InvalidParamException $ex) {
|
||||
// not exists
|
||||
$jobInQueue = false;
|
||||
}
|
||||
|
||||
if (!$jobInQueue) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user