2015-09-25 46 views

回答

0

在您的隊列配置文件:

'default' => 'sqs-west', 

'connections' => array(

'sync' => array(
    'driver' => 'sync', 
), 

'sqs-west' => array(
    'driver' => 'sqs', 
    'key' => 'KEY', 
    'secret' => 'SECRET', 
    'queue' => 'ADDRESS', 
    'region' => 'eu-west-1', 
), 

'sqs-east' => array(
    'driver' => 'sqs', 
    'key' => 'KEY', 
    'secret' => 'SECRET', 
    'queue' => 'ADDRESS', 
    'region' => 'eu-east-1, 
), 

然後,你開始與工匠的工作隊列:

php artisan queue:work --queue=sqs-east

php artisan queue:work --queue=sqs-west

+0

我怎麼能派遣工作從代碼到不同的隊列? –

相關問題