From 7fb70a72cf7b876f7bb05056a26c4786ea728fe6 Mon Sep 17 00:00:00 2001 From: merdan Date: Sat, 11 Apr 2020 16:35:46 +0500 Subject: [PATCH] checkout fail --- app/Jobs/ProcessPayment.php | 1 + app/Models/Ticket.php | 1 + config/queue.php | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Jobs/ProcessPayment.php b/app/Jobs/ProcessPayment.php index 2feb3011..e08935a3 100644 --- a/app/Jobs/ProcessPayment.php +++ b/app/Jobs/ProcessPayment.php @@ -19,6 +19,7 @@ class ProcessPayment extends Job implements ShouldQueue protected $order; protected $session_data; + public $tries = 5; /** * Create a new job instance. * diff --git a/app/Models/Ticket.php b/app/Models/Ticket.php index cd94caa5..32910c98 100644 --- a/app/Models/Ticket.php +++ b/app/Models/Ticket.php @@ -88,6 +88,7 @@ class Ticket extends MyBaseModel public function booked(){ return $this->hasMany(Attendee::class) ->where('is_cancelled',false) + ->where('is_refunded',false) ->orderBy('seat_no','asc'); } diff --git a/config/queue.php b/config/queue.php index 7b5785c7..02a4f6eb 100644 --- a/config/queue.php +++ b/config/queue.php @@ -30,7 +30,7 @@ return [ 'connections' => [ 'sync' => [ - 'driver' => 'sync', + 'driver' => 'redis', ], 'database' => [ 'driver' => 'database', @@ -62,7 +62,8 @@ return [ 'redis' => [ 'driver' => 'redis', 'queue' => 'default', - 'expire' => 60, + 'retry_after' => 90, + 'block_for' => 5, ], ], /*