DJJob.php
public static function status($queue = "default") {
        $rs = self::runQuery("
            SELECT COUNT(*) as total, COUNT(failed_at) as failed, COUNT(locked_at) as locked
            FROM `" . self::$jobsTable . "`
            WHERE queue = ?
        ", array($queue));
        $rs = $rs[0];

        $failed = $rs["failed"];
        $locked = $rs["locked"];
        $total  = $rs["total"];
        $outstanding = $total - $locked - $failed;

        return array(
            "outstanding" => $outstanding,
            "locked" => $locked,
            "failed" => $failed,
            "total"  => $total
        );
    }
public static function status($queue = "default") {
        $rs = self::runQuery("
            SELECT COUNT(*) as total, COUNT(failed_at) as failed, COUNT(locked_at) as locked
            FROM `" . self::$jobsTable . "`
            WHERE queue = ?
        ", array($queue));
        $rs = $rs[0];

        $failed = $rs["failed"];
        $locked = $rs["locked"];
        $total  = $rs["total"];
        $outstanding = $total - $locked - $failed;

        return array(
            "outstanding" => $outstanding,
            "locked" => $locked,
            "failed" => $failed,
            "total"  => $total
        );
    }
public static function status ( $ queue = "default" ) { $ rs = self :: runQuery ( "
            SELECT COUNT(*) as total, COUNT(failed_at) as failed, COUNT(locked_at) as locked
            FROM `" . self :: $ jobsTable . "`
            WHERE queue = ?
        " , array ( $ queue ) ) ; $ rs = $ rs [ 0 ] ; $ failed = $ rs [ "failed" ] ; $ locked = $ rs [ "locked" ] ; $ total = $ rs [ "total" ] ; $ outstanding = $ total - $ locked - $ failed ; return array ( "outstanding" => $ outstanding , "locked" => $ locked , "failed" => $ failed , "total" => $ total ) ; }
Returns the general status of the jobs table.

@param string $queue The queue of which to see the status for.

@return array Information about the status.
Returns the general status of the jobs table .