updated rental moon command with the correct job calls in the right order

updated the horizon redis configuration to add new processes and a new job queue called moons for the new moon rental coding
This commit is contained in:
2020-05-10 22:22:26 -05:00
parent 08844a50f7
commit f3e3406e04
4 changed files with 79 additions and 37 deletions
@@ -113,6 +113,9 @@ class MoonRentalInvoiceCreate implements ShouldQueue
$body .= "Sincerely,<br>";
$body .= "Warped Intentions Leadership<br>";
//Create the moon invoice and save it to the database
//Dispatch a new mail job
$mail = new JobSendEveMail;
$mail->sender = $config['primary'];
@@ -122,7 +125,7 @@ class MoonRentalInvoiceCreate implements ShouldQueue
$mail->recipient_type = 'character';
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay(Carbon::now()->addSeconds($this->delay));
MoonRentalUpdate::dispatch($this->rentals);
MoonRentalUpdate::dispatch($this->rentals)->onQueue('moons');
}
private function TotalizeMoonCost() {
@@ -1,34 +0,0 @@
<?php
namespace App\Jobs\Commands\Moons;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
class MoonRentalPaymentJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
//
}
}