for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Laravel Queue for AWS Batch.
*
* @author Luke Waite <[email protected]>
* @copyright 2017 Luke Waite
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link https://github.com/dnxlabs/laravel-queue-aws-batch
*/
namespace DNXLabs\LaravelQueueAwsBatch\Jobs;
use Illuminate\Queue\Jobs\DatabaseJob;
use DNXLabs\LaravelQueueAwsBatch\Exceptions\UnsupportedException;
class BatchJob extends DatabaseJob
{
* The database queue instance.
* @var \DNXLabs\LaravelQueueAwsBatch\Queues\BatchQueue
protected $database;
* Release the job back into the queue.
* Here we need to retain the same jobId, so Batch can retry it, so we need to override the parent.
* @param int $delay
* @return void
* @throws UnsupportedException
public function release($delay = 0)
if ($delay != 0) {
throw new UnsupportedException('The BatchJob does not support releasing back onto the queue with a delay');
}
$this->released = true;
$this->database->release($this->queue, $this->job, 0);