mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
schedule
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Console;
|
namespace App\Console;
|
||||||
|
|
||||||
|
use App\Console\Commands\Feed\ReadAndSyncEinundzwanzigPodcastFeed;
|
||||||
|
use App\Console\Commands\OpenBooks\SyncOpenBooks;
|
||||||
use Illuminate\Console\Scheduling\Schedule;
|
use Illuminate\Console\Scheduling\Schedule;
|
||||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||||
use Laravel\Nova\Trix\PruneStaleAttachments;
|
use Laravel\Nova\Trix\PruneStaleAttachments;
|
||||||
@@ -12,16 +14,21 @@ class Kernel extends ConsoleKernel
|
|||||||
* Define the application's command schedule.
|
* Define the application's command schedule.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
$schedule->call(new PruneStaleAttachments)->daily();
|
$schedule->call(new PruneStaleAttachments)
|
||||||
|
->daily();
|
||||||
|
$schedule->call(SyncOpenBooks::class)
|
||||||
|
->dailyAt('23:00');
|
||||||
|
$schedule->call(ReadAndSyncEinundzwanzigPodcastFeed::class)
|
||||||
|
->dailyAt('23:30');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the commands for the application.
|
* Register the commands for the application.
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function commands()
|
protected function commands()
|
||||||
|
|||||||
Reference in New Issue
Block a user