Run tasks every minute as needed

Clear logs every month (configurable) for old tasks logs.
This commit is contained in:
Dane Everitt 2016-10-21 16:36:40 -04:00
parent 6731f7ffbc
commit 176d92176e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 89 additions and 1 deletions

View file

@ -18,6 +18,7 @@ class Kernel extends ConsoleKernel
\Pterodactyl\Console\Commands\ShowVersion::class,
\Pterodactyl\Console\Commands\UpdateEnvironment::class,
\Pterodactyl\Console\Commands\RunTasks::class,
\Pterodactyl\Console\Commands\ClearTasks::class,
\Pterodactyl\Console\Commands\ClearServices::class,
\Pterodactyl\Console\Commands\UpdateEmailSettings::class,
];
@ -30,6 +31,7 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('pterodactyl:tasks')->everyFiveMinutes()->withoutOverlapping();
$schedule->command('pterodactyl:tasks')->everyMinute()->withoutOverlapping();
$schedule->command('pterodactyl:tasks:clearlog')->twiceDaily(3, 15);
}
}