updated delays for jobs
This commit is contained in:
@@ -160,7 +160,7 @@ class ContractAdminController extends Controller
|
||||
$mail->body = $body;
|
||||
$mail->sender = $config['primary'];
|
||||
//Dispatch the mail job
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail');
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay(Carbon::now()->addSeconds(5));
|
||||
|
||||
//Tidy up the contract by doing a few things.
|
||||
$this->TidyContract($contract, $bid);
|
||||
@@ -193,6 +193,6 @@ class ContractAdminController extends Controller
|
||||
$mail->recipient = $config['alliance'];
|
||||
$mail->recipient_type = 'alliance';
|
||||
$mail->body = "A new contract is available for the alliance contracting system. Please check out <a href='https://services.w4rp.space'>Services Site</a> if you want to bid on the production contract.<br><br>Sincerely,<br>Warped Intentions Leadership";
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail');
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay(Carbon::now()->addSeconds(5));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,9 +7,6 @@ use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Log;
|
||||
|
||||
//Jobs
|
||||
use App\Jobs\ProcessSendEveMailJob;
|
||||
|
||||
//Models
|
||||
use App\Models\Logistics\AnchorStructure;
|
||||
use App\Models\Jobs\JobSendEveMail;
|
||||
|
||||
@@ -78,7 +78,7 @@ class StructureRequestController extends Controller
|
||||
$mail->body = $body;
|
||||
$mail->recipient = (int)$fc->character_id;
|
||||
$mail->recipient_type = 'character';
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay($delay);
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay(Carbon::now()->addSeconds($delay));
|
||||
|
||||
$delay += 15;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ class MoonsAdminController extends Controller
|
||||
$mail->body = $body;
|
||||
$mail->recipient = (int)$moon->requestor_id;
|
||||
$mail->recipient_type = 'character';
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail');
|
||||
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay(Carbon::now()->addSeconds(5));
|
||||
|
||||
return redirect('/moons/admin/display/request')->with('success', 'Moon has been processed, and mail has been sent out.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user