Run tasks every minute as needed
Clear logs every month (configurable) for old tasks logs.
This commit is contained in:
parent
6731f7ffbc
commit
176d92176e
4 changed files with 89 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue