Laravel job

CREATE TABLE `t_failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


* * * * * nobody php /usr/share/nginx/html/aaaaaa/artisan schedule:run 1>> /dev/null 2>&1

$schedule->command('queue:work redis --queue=aaaaaa --sleep=1 --max-time=82800')->everyMinute()->withoutOverlapping();


'daily' => [
    'driver' => 'daily',
    'path' => storage_path('logs/laravel.log'),
    'level' => 'debug',
    'days' => 7,
    'permission' => 0777,
],


php artisan queue:restart
systemctl模式运行:
vi /lib/systemd/system/laravel_queue_test_jobs.service
[Unit]
Description=Lravel queue:test_jobs
After=network.target network-online.target syslog.target
Wants=network.target network-online.target

[Service]
Type=simple
User=nobody
Group=nobody
ExecStart=/usr/bin/php -c /etc/php/8.0/cli/php.ini -d open_basedir=/usr/share/nginx/html/www/:/tmp/ /usr/share/nginx/html/www/artisan queue:work redis --queue=test_jobs
Restart=on-failure

[Install]
WantedBy=multi-user.target


mv /etc/php/8.0/cli/php.ini /etc/php/8.0/cli/php.ini.bak
cp /etc/php/8.0/fpm/php.ini /etc/php/8.0/cli/
vi /etc/php/8.0/cli/php.ini
remove pcntl_async_signals,pcntl_signal,pcntl_alarm from disable_functions
memory_limit = 256M


systemctl daemon-reload
systemctl start laravel_queue_test_jobs
systemctl status laravel_queue_test_jobs
systemctl enable laravel_queue_test_jobs