feat: add PollFuelPricesJob queued job
This commit is contained in:
17
app/Jobs/PollFuelPricesJob.php
Normal file
17
app/Jobs/PollFuelPricesJob.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Queue\Queueable;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
class PollFuelPricesJob implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
Artisan::call('fuel:poll', ['--full' => true]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user