added backend functions for jump bridge fuel display with the new way we are doing jobs

This commit is contained in:
2021-05-17 06:08:05 +09:00
parent a0c0186337
commit de0071734b
15 changed files with 824 additions and 60 deletions
@@ -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
View File
@@ -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');
}
/**