Add scheduler to supervisod

This commit is contained in:
Andras Bacsai 2023-03-30 20:24:11 +02:00
parent 12ef88b90f
commit 00d9983655
2 changed files with 13 additions and 1 deletions

View File

@ -14,7 +14,6 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule): void
{
$schedule->job(new ContainerStatusJob)->everyMinute();
// $schedule->command('inspire')->hourly();
}
/**

View File

@ -25,3 +25,16 @@ numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/html/storage/logs/worker.log
stopwaitsecs=3600
[program:laravel-schedule]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan schedule:work
user=sail
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/html/storage/logs/worker.log
stopwaitsecs=3600