protected function isReservedButExpired($query)
    {
        $expiration = Carbon::now()->subSeconds($this->expire)->getTimestamp();

        $query->orWhere(function ($query) use ($expiration) {
            $query->where('reserved_at', '<=', $expiration);
        });
    }
protected function isReservedButExpired($query)
    {
        $expiration = Carbon::now()->subSeconds($this->expire)->getTimestamp();

        $query->orWhere(function ($query) use ($expiration) {
            $query->where('reserved_at', '<=', $expiration);
        });
    }
protected function isReservedButExpired ( $ query ) { $ expiration = Carbon :: now ( ) -> subSeconds ( $ this -> expire ) -> getTimestamp ( ) ; $ query -> orWhere ( function ( $ query ) use ( $ expiration ) { $ query -> where ( 'reserved_at' , '<=' , $ expiration ) ; } ) ; }
Modify the query to check for jobs that are reserved but have expired.

@param  \Globalis\PuppetSkilled\Database\Query\Builder  $query
@return void
Modify the query to check for jobs that are reserved but have expired .