added backend functions for jump bridge fuel display with the new way we are doing jobs
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
use App\Jobs\Commands\Structure\FetchAllianceAssets as FAA;
|
||||
|
||||
class ExecuteFetchAllianceAssetsCommand extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'structure:assets';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Execute fetch alliance command.';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
FAA::dispatch()->onQueue('default');
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
use App\Jobs\Commands\Structures\FetchAllianceStructures as FAS;
|
||||
|
||||
class ExecuteFetchAllianceStructuresCommand extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'structure:structure';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Fetch alliance structures command.';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
FAS::dispatch()->onQueue('default');
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
+17
-3
@@ -50,9 +50,6 @@ class Kernel extends ConsoleKernel
|
||||
//Horizon Graph Schedule
|
||||
$schedule->command('horizon:snapshot')->everyFiveMinutes();
|
||||
|
||||
//Test rung to help figure out what is going on.
|
||||
//$schedule->command('inspire')->everyMinute();
|
||||
|
||||
/**
|
||||
* Purge Data Schedule
|
||||
*/
|
||||
@@ -96,6 +93,23 @@ class Kernel extends ConsoleKernel
|
||||
$schedule->job(new UpdateMiningTaxesLateInvoices15th)
|
||||
->timezone('UTC')
|
||||
->monthlyOn(15, '16:00');
|
||||
|
||||
/**
|
||||
* Alliance Structure and Assets Schedule
|
||||
*/
|
||||
$schedule->job(new FetchAllianceStructures)
|
||||
->timezone('UTC')
|
||||
->dailyAt('21:00');
|
||||
$schedule->job(new FetchAllianceAssets)
|
||||
->timezone('UTC')
|
||||
->hourlyAt('15');
|
||||
$schedule->job(new PurgeAllianceStructures)
|
||||
->timezone('UTC')
|
||||
->monthlyOn(2, '14:00');
|
||||
$schedule->job(new PurgeAllianceAssets)
|
||||
->timezone('UTC')
|
||||
->monthlyOn(2, '15:00');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user