src/QueueManager.php
public function isQueueActive($name)
    {
        if (!$this->hasQueue($name)) {
            throw new \InvalidArgumentException(sprintf('Unknown queue "%s"', $name));
        }
        $path = sprintf('api/shop/v1/queues/%s', $this->queues[$name]);
        $data = $this->client->sendRequest($path);
        return is_array($data) && array_key_exists('state', $data) ? $data['state'] == 'active' : false;
    }
public function isQueueActive($name)
    {
        if (!$this->hasQueue($name)) {
            throw new \InvalidArgumentException(sprintf('Unknown queue "%s"', $name));
        }
        $path = sprintf('api/shop/v1/queues/%s', $this->queues[$name]);
        $data = $this->client->sendRequest($path);
        return is_array($data) && array_key_exists('state', $data) ? $data['state'] == 'active' : false;
    }
public function isQueueActive ( $ name ) { if ( ! $ this -> hasQueue ( $ name ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown queue "%s"' , $ name ) ) ; } $ path = sprintf ( 'api/shop/v1/queues/%s' , $ this -> queues [ $ name ] ) ; $ data = $ this -> client -> sendRequest ( $ path ) ; return is_array ( $ data ) && array_key_exists ( 'state' , $ data ) ? $ data [ 'state' ] == 'active' : false ; }
Whether queue active

@param string $name Queue name

@return bool
Whether queue active