Add scheduler to supervisod

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

No files matched your search

-1
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();
}
/**
+13
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