0
我一直在增加就業機會,以在Laravel隊列,但他們只是在運行時,我ssh'ed到服務器並運行以下命令:在沒有命令行監聽器的情況下在Laravel 5中運行排隊的作業?
php artisan queue:listen --tries 1 --timeout=60
我需要隊列不斷運行,而不依靠上面的命令行監聽器。隊列是通過Redis的運行,並且我到目前爲止唯一的配置是:
config.php
'queue' =>
array (
'default' => 'redis',
'connections' =>
array (
'sync' =>
array (
'driver' => 'sync',
),
'database' =>
array (
'driver' => 'database',
'table' => 'laravel_jobs',
'queue' => 'default',
'expire' => 60,
),
'beanstalkd' =>
array (
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'ttr' => 60,
),
'sqs' =>
array (
'driver' => 'sqs',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
'queue' => 'your-queue-url',
'region' => 'us-east-1',
),
'iron' =>
array (
'driver' => 'iron',
'host' => 'mq-aws-us-east-1.iron.io',
'token' => 'your-token',
'project' => 'your-project-id',
'queue' => 'your-queue-name',
'encrypt' => true,
),
'redis' =>
array (
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'expire' => 60,
),
),
'failed' =>
array (
'database' => 'mysql',
'table' => 'laravel_failed_jobs',
),
),
,在我.ENV文件:
QUEUE_DRIVER=redis
我覺得我一定是什麼配置不正確。