server/src/config/queue.php
changeset 2 00e2916104fe
parent 1 01a844d292ac
equal deleted inserted replaced
1:01a844d292ac 2:00e2916104fe
     1 <?php
     1 <?php
     2 
     2 
     3 return [
     3 return [
     4 
     4 
     5 	/*
     5     /*
     6 	|--------------------------------------------------------------------------
     6     |--------------------------------------------------------------------------
     7 	| Default Queue Driver
     7     | Default Queue Driver
     8 	|--------------------------------------------------------------------------
     8     |--------------------------------------------------------------------------
     9 	|
     9     |
    10 	| The Laravel queue API supports a variety of back-ends via an unified
    10     | The Laravel queue API supports a variety of back-ends via an unified
    11 	| API, giving you convenient access to each back-end using the same
    11     | API, giving you convenient access to each back-end using the same
    12 	| syntax for each one. Here you may set the default queue driver.
    12     | syntax for each one. Here you may set the default queue driver.
    13 	|
    13     |
    14 	| Supported: "null", "sync", "database", "beanstalkd",
    14     | Supported: "null", "sync", "database", "beanstalkd",
    15 	|            "sqs", "iron", "redis"
    15     |            "sqs", "iron", "redis"
    16 	|
    16     |
    17 	*/
    17     */
    18 
    18 
    19 	'default' => env('QUEUE_DRIVER', 'sync'),
    19     'default' => env('QUEUE_DRIVER', 'sync'),
    20 
    20 
    21 	/*
    21     /*
    22 	|--------------------------------------------------------------------------
    22     |--------------------------------------------------------------------------
    23 	| Queue Connections
    23     | Queue Connections
    24 	|--------------------------------------------------------------------------
    24     |--------------------------------------------------------------------------
    25 	|
    25     |
    26 	| Here you may configure the connection information for each server that
    26     | Here you may configure the connection information for each server that
    27 	| is used by your application. A default configuration has been added
    27     | is used by your application. A default configuration has been added
    28 	| for each back-end shipped with Laravel. You are free to add more.
    28     | for each back-end shipped with Laravel. You are free to add more.
    29 	|
    29     |
    30 	*/
    30     */
    31 
    31 
    32 	'connections' => [
    32     'connections' => [
    33 
    33 
    34 		'sync' => [
    34         'sync' => [
    35 			'driver' => 'sync',
    35             'driver' => 'sync',
    36 		],
    36         ],
    37 
    37 
    38 		'database' => [
    38         'database' => [
    39 			'driver' => 'database',
    39             'driver' => 'database',
    40 			'table' => 'jobs',
    40             'table' => 'jobs',
    41 			'queue' => 'default',
    41             'queue' => 'default',
    42 			'expire' => 60,
    42             'expire' => 60,
    43 		],
    43         ],
    44 
    44 
    45 		'beanstalkd' => [
    45         'beanstalkd' => [
    46 			'driver' => 'beanstalkd',
    46             'driver' => 'beanstalkd',
    47 			'host'   => 'localhost',
    47             'host' => 'localhost',
    48 			'queue'  => 'default',
    48             'queue' => 'default',
    49 			'ttr'    => 60,
    49             'ttr' => 60,
    50 		],
    50         ],
    51 
    51 
    52 		'sqs' => [
    52         'sqs' => [
    53 			'driver' => 'sqs',
    53             'driver' => 'sqs',
    54 			'key'    => 'your-public-key',
    54             'key' => 'your-public-key',
    55 			'secret' => 'your-secret-key',
    55             'secret' => 'your-secret-key',
    56 			'queue'  => 'your-queue-url',
    56             'queue' => 'your-queue-url',
    57 			'region' => 'us-east-1',
    57             'region' => 'us-east-1',
    58 		],
    58         ],
    59 
    59 
    60 		'iron' => [
    60         'iron' => [
    61 			'driver'  => 'iron',
    61             'driver' => 'iron',
    62 			'host'    => 'mq-aws-us-east-1.iron.io',
    62             'host' => 'mq-aws-us-east-1.iron.io',
    63 			'token'   => 'your-token',
    63             'token' => 'your-token',
    64 			'project' => 'your-project-id',
    64             'project' => 'your-project-id',
    65 			'queue'   => 'your-queue-name',
    65             'queue' => 'your-queue-name',
    66 			'encrypt' => true,
    66             'encrypt' => true,
    67 		],
    67         ],
    68 
    68 
    69 		'redis' => [
    69         'redis' => [
    70 			'driver' => 'redis',
    70             'driver' => 'redis',
    71 			'queue'  => 'default',
    71             'queue' => 'default',
    72 			'expire' => 60,
    72             'expire' => 60,
    73 		],
    73         ],
    74 
    74 
    75 	],
    75     ],
    76 
    76 
    77 	/*
    77     /*
    78 	|--------------------------------------------------------------------------
    78     |--------------------------------------------------------------------------
    79 	| Failed Queue Jobs
    79     | Failed Queue Jobs
    80 	|--------------------------------------------------------------------------
    80     |--------------------------------------------------------------------------
    81 	|
    81     |
    82 	| These options configure the behavior of failed queue job logging so you
    82     | These options configure the behavior of failed queue job logging so you
    83 	| can control which database and table are used to store the jobs that
    83     | can control which database and table are used to store the jobs that
    84 	| have failed. You may change them to any database / table you wish.
    84     | have failed. You may change them to any database / table you wish.
    85 	|
    85     |
    86 	*/
    86     */
    87 
    87 
    88 	'failed' => [
    88     'failed' => [
    89 		'database' => 'mysql', 'table' => 'failed_jobs',
    89         'database' => 'mysql', 'table' => 'failed_jobs',
    90 	],
    90     ],
    91 
    91 
    92 ];
    92 ];