src/ElasticsearchQueue.php
/**
     * Create an array to insert for the given job.
     *
     * @param  string|null  $queue
     * @param  string  $payload
     * @param  int  $availableAt
     * @param  int  $attempts
     * @return array
     */
Create an array to insert for the given job.
Create an array to insert for the given job .
protected function buildElasticsearchDoc($queue, $payload, $availableAt, $attempts = 0)
    {
        return [
            'id' => $this->retrieveFromPayload('id', $payload),
            'queue' => $this->getQueue($queue),
            'attempts' => $attempts,
            'reserved_at' => 0,
            'available_at' => $availableAt,
            'created_at' => $this->getTime(),
            'payload' => $payload,
        ];
    }
protected function buildElasticsearchDoc ( $ queue , $ payload , $ availableAt , $ attempts = 0 ) { return [ 'id' => $ this -> retrieveFromPayload ( 'id' , $ payload ) , 'queue' => $ this -> getQueue ( $ queue ) , 'attempts' => $ attempts , 'reserved_at' => 0 , 'available_at' => $ availableAt , 'created_at' => $ this -> getTime ( ) , 'payload' => $ payload , ] ; }
Create an array to insert for the given job.
Create an array to insert for the given job .