Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
75 lines
2.1 KiB
PHP
Executable File
75 lines
2.1 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
// Run task scheduler every minute
|
|
$schedule->command('task:scheduler')
|
|
->everyMinute()
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
|
|
// Generate sitemap every 3 hours
|
|
$schedule->command('sitemap:generate --queue')
|
|
->cron('0 */3 * * *')
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
|
|
// Run task cleanup daily
|
|
$schedule->command('task:scheduler --cleanup')
|
|
->daily()
|
|
->at('02:00')
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
|
|
// Run session cleanup every hour
|
|
$schedule->command('session:cleanup')
|
|
->hourly()
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
|
|
// Process geocoding tasks hourly
|
|
$schedule->command('geocoding:process --limit=20')
|
|
->hourly()
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
|
|
// Process email queue every minute
|
|
$schedule->command('email:process --batch=10')
|
|
->everyMinute()
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
|
|
// Process document conversions every 5 minutes
|
|
$schedule->command('documents:process --limit=10')
|
|
->everyFiveMinutes()
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
}
|
|
|
|
/**
|
|
* Register the commands for the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function commands()
|
|
{
|
|
$this->load(__DIR__.'/Commands'); // Application commands
|
|
$this->load(__DIR__.'/../RSpade/Commands'); // Framework commands
|
|
|
|
require base_path('routes/console.php');
|
|
}
|
|
|
|
} |