Phalcon\Queue\Beanstalk\Extended::getJobStats PHP Method

getJobStats() public method

Returns information about specified job if it exists
public getJobStats ( integer $job_id ) : null | array
$job_id integer
return null | array
    public function getJobStats($job_id)
    {
        $result = null;
        $lines = $this->getResponseLines('stats-job ' . (int) $job_id);
        if (!empty($lines)) {
            foreach ($lines as $line) {
                if (false !== strpos($line, ':')) {
                    list($name, $value) = explode(':', $line);
                    if (null !== $value) {
                        $result[$name] = intval($value);
                    }
                }
            }
        }
        return $result;
    }