apilogs
This commit is contained in:
@@ -2,7 +2,22 @@
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
// Poll for price changes every 15 minutes
|
||||
Schedule::command('fuel:poll')
|
||||
->everyFifteenMinutes()
|
||||
->withoutOverlapping()
|
||||
->onOneServer()
|
||||
->runInBackground();
|
||||
|
||||
// Full refresh (station metadata + prices) once daily at 3am
|
||||
Schedule::command('fuel:poll --full')
|
||||
->dailyAt('03:00')
|
||||
->withoutOverlapping()
|
||||
->onOneServer()
|
||||
->runInBackground();
|
||||
|
||||
Reference in New Issue
Block a user