add basic scheduler and queue processing for tasks

This commit is contained in:
Dane Everitt 2016-02-27 18:35:12 -05:00
parent b6719129e1
commit 1296d08dcb
11 changed files with 441 additions and 4 deletions

View file

@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel
\Pterodactyl\Console\Commands\MakeUser::class,
\Pterodactyl\Console\Commands\ShowVersion::class,
\Pterodactyl\Console\Commands\UpdateEnvironment::class,
\Pterodactyl\Console\Commands\RunTasks::class,
];
/**
@ -27,7 +28,6 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')
->hourly();
$schedule->command('pterodactyl:tasks')->everyFiveMinutes()->withoutOverlapping();
}
}