Some checks failed
Push image to registry / build-image (push) Failing after 6m44s
28 lines
1.3 KiB
PHP
28 lines
1.3 KiB
PHP
<?php
|
|
|
|
use App\Browser\Jobs\Hellcase\HellcaseJob;
|
|
use App\Browser\Jobs\HellcaseBattles\HellcaseBattlesJob;
|
|
use App\Browser\Jobs\InstagramRepost\InstagramRepostJob;
|
|
use App\Jobs\PruneOldJobRuns;
|
|
use App\Services\BrowserJobsInstances;
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote');
|
|
|
|
// Telescope
|
|
Schedule::command('telescope:prune')->monthly();
|
|
|
|
// Prune old job runs
|
|
Schedule::job(new PruneOldJobRuns)->monthly()->onOneServer()->withoutOverlapping()->name('prune-old-job-runs')->description('Prune old job runs')->skip(function () {
|
|
return !config('jobs.pruneOldJobRuns.enabled');
|
|
});
|
|
|
|
// Jobs
|
|
Schedule::job(new HellcaseJob)->daily()->onOneServer()->withoutOverlapping()->name('hellcase')->description('Hellcase job');
|
|
// Schedule::job(new HellcaseJob)->everyMinute()->onOneServer()->withoutOverlapping()->name('hellcase')->description('Hellcase job');
|
|
Schedule::job(new HellcaseBattlesJob)->hourly()->onOneServer()->withoutOverlapping()->name('hellcase_battles')->description('Hellcase battles job');
|
|
Schedule::job(new InstagramRepostJob())->everyThreeHours()->onOneServer()->withoutOverlapping()->name('instagram_reposts')->description('Intagrame reposts job');
|