queue default to construct of job
This commit is contained in:
@@ -60,7 +60,6 @@ class Kernel extends ConsoleKernel
|
|||||||
* Purge Data Schedule
|
* Purge Data Schedule
|
||||||
*/
|
*/
|
||||||
$schedule->job(new PurgeUsersJob)
|
$schedule->job(new PurgeUsersJob)
|
||||||
->onQueue('default')
|
|
||||||
->weekly();
|
->weekly();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -68,7 +67,6 @@ class Kernel extends ConsoleKernel
|
|||||||
*/
|
*/
|
||||||
$schedule->job(new UpdateAllianceWalletJournalJob)
|
$schedule->job(new UpdateAllianceWalletJournalJob)
|
||||||
->hourlyAt('45')
|
->hourlyAt('45')
|
||||||
->onQueue('finances')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -76,7 +74,6 @@ class Kernel extends ConsoleKernel
|
|||||||
*/
|
*/
|
||||||
$schedule->job(new UpdateItemPricesJob)
|
$schedule->job(new UpdateItemPricesJob)
|
||||||
->hourlyAT('30')
|
->hourlyAT('30')
|
||||||
->onQueue('default')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,27 +81,21 @@ class Kernel extends ConsoleKernel
|
|||||||
*/
|
*/
|
||||||
$schedule->job(new FetchMiningTaxesObservers)
|
$schedule->job(new FetchMiningTaxesObservers)
|
||||||
->dailyAt('22:00')
|
->dailyAt('22:00')
|
||||||
->onQueue('miningtaxes')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new PreFetchMiningTaxesLedgers)
|
$schedule->job(new PreFetchMiningTaxesLedgers)
|
||||||
->dailyAt('20:00')
|
->dailyAt('20:00')
|
||||||
->onQueue('miningtaxes')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new SendMiningTaxesInvoices)
|
$schedule->job(new SendMiningTaxesInvoices)
|
||||||
->weeklyOn(1, '06:00')
|
->weeklyOn(1, '06:00')
|
||||||
->onQueue('miningtaxes')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new ProcessMiningTaxesPayments)
|
$schedule->job(new ProcessMiningTaxesPayments)
|
||||||
->hourlyAt('15')
|
->hourlyAt('15')
|
||||||
->onQueue('miningtaxes')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new UpdateMiningTaxesLateInvoices1st)
|
$schedule->job(new UpdateMiningTaxesLateInvoices1st)
|
||||||
->monthlyOn(1, '16:00')
|
->monthlyOn(1, '16:00')
|
||||||
->onQueue('miningtaxes')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new UpdateMiningTaxesLateInvoices15th)
|
$schedule->job(new UpdateMiningTaxesLateInvoices15th)
|
||||||
->monthlyOn(15, '16:00')
|
->monthlyOn(15, '16:00')
|
||||||
->onQueue('miningtaxes')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -112,19 +103,15 @@ class Kernel extends ConsoleKernel
|
|||||||
*/
|
*/
|
||||||
$schedule->job(new FetchAllianceStructures)
|
$schedule->job(new FetchAllianceStructures)
|
||||||
->dailyAt('21:00')
|
->dailyAt('21:00')
|
||||||
->onQueue('structures')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new FetchAllianceAssets)
|
$schedule->job(new FetchAllianceAssets)
|
||||||
->hourlyAt('15')
|
->hourlyAt('15')
|
||||||
->onQueue('structures')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new PurgeAllianceStructures)
|
$schedule->job(new PurgeAllianceStructures)
|
||||||
->monthlyOn(2, '14:00')
|
->monthlyOn(2, '14:00')
|
||||||
->onQueue('structures')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
$schedule->job(new PurgeAllianceAssets)
|
$schedule->job(new PurgeAllianceAssets)
|
||||||
->monthlyOn(2, '15:00')
|
->monthlyOn(2, '15:00')
|
||||||
->onQueue('structures')
|
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ class FetchAllianceAssets implements ShouldQueue
|
|||||||
{
|
{
|
||||||
//Set the connection for the job
|
//Set the connection for the job
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('structures');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class ProcessAllianceAssets implements ShouldQueue
|
|||||||
{
|
{
|
||||||
//Set the connection for the job
|
//Set the connection for the job
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('structures');
|
||||||
|
|
||||||
$this->asset = $a;
|
$this->asset = $a;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class PurgeAllianceAssets implements ShouldQueue
|
|||||||
{
|
{
|
||||||
//Set the connection for the job
|
//Set the connection for the job
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('structures');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ class PurgeUsers implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('default');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ class ItemPricesUpdate implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('default');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ class SendEveMail implements ShouldQueue
|
|||||||
public function __construct($body, $recipient, $recipient_type, $subject, $sender) {
|
public function __construct($body, $recipient, $recipient_type, $subject, $sender) {
|
||||||
//Set the connection
|
//Set the connection
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('mail');
|
||||||
|
|
||||||
//Set the middleware for the job
|
//Set the middleware for the job
|
||||||
$this->middleware = $this->middleware();
|
$this->middleware = $this->middleware();
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class UpdateAllianceWalletJournalJob implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('finances');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -51,6 +51,9 @@ class UpdateAllianceWalletJournalPage implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function __construct($division, $charId, $page)
|
public function __construct($division, $charId, $page)
|
||||||
{
|
{
|
||||||
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('finances');
|
||||||
|
|
||||||
$this->division = $division;
|
$this->division = $division;
|
||||||
$this->charId = $charId;
|
$this->charId = $charId;
|
||||||
$this->page = $page;
|
$this->page = $page;
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class UpdateItemPrices implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('default');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ class CreateMiningTaxesInvoice implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
//
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ class FetchMiningTaxesLedgers implements ShouldQueue
|
|||||||
{
|
{
|
||||||
//Set the connection for the job
|
//Set the connection for the job
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
|
|
||||||
//Import the variables from the calling function
|
//Import the variables from the calling function
|
||||||
$this->charId = $charId;
|
$this->charId = $charId;
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class FetchMiningTaxesObservers implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class PreFetchMiningTaxesLedgers implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ class ProcessMiningTaxesLedgers implements ShouldQueue
|
|||||||
{
|
{
|
||||||
//Set the connection for the job
|
//Set the connection for the job
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
|
|
||||||
//Import variables from the calling function
|
//Import variables from the calling function
|
||||||
$this->ledger = $ledger;
|
$this->ledger = $ledger;
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class ProcessMiningTaxesPayments implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ class SendMiningTaxesInvoices implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
//
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ class SendMiningTaxesInvoicesOld implements ShouldQueue
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ class UpdateMiningTaxesLateInvoices15th implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
//
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ class UpdateMiningTaxesLateInvoices1st implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
//
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('miningtaxes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ class ProcessAllianceStructures implements ShouldQueue
|
|||||||
{
|
{
|
||||||
//Set the connection for the job
|
//Set the connection for the job
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('structures');
|
||||||
|
|
||||||
//Set variables
|
//Set variables
|
||||||
$this->structure = $s;
|
$this->structure = $s;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ class PurgeAllianceStructures implements ShouldQueue
|
|||||||
{
|
{
|
||||||
//Set the connection for the job
|
//Set the connection for the job
|
||||||
$this->connection = 'redis';
|
$this->connection = 'redis';
|
||||||
|
$this->onQueue('structures');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user