home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

queue.php (3447B)


      1 <?php
      2 
      3 return [
      4 
      5     /*
      6     |--------------------------------------------------------------------------
      7     | Default Queue Connection Name
      8     |--------------------------------------------------------------------------
      9     |
     10     | Laravel's queue API supports an assortment of back-ends via a single
     11     | API, giving you convenient access to each back-end using the same
     12     | syntax for every one. Here you may define a default connection.
     13     |
     14     */
     15 
     16     'default' => env('QUEUE_CONNECTION', 'sync'),
     17 
     18     /*
     19     |--------------------------------------------------------------------------
     20     | Queue Connections
     21     |--------------------------------------------------------------------------
     22     |
     23     | Here you may configure the connection information for each server that
     24     | is used by your application. A default configuration has been added
     25     | for each back-end shipped with Laravel. You are free to add more.
     26     |
     27     | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
     28     |
     29     */
     30 
     31     'connections' => [
     32 
     33         'sync' => [
     34             'driver' => 'sync',
     35         ],
     36 
     37         'database' => [
     38             'driver' => 'database',
     39             'table' => 'jobs',
     40             'queue' => 'default',
     41             'retry_after' => 90,
     42             'after_commit' => false,
     43         ],
     44 
     45         'beanstalkd' => [
     46             'driver' => 'beanstalkd',
     47             'host' => 'localhost',
     48             'queue' => 'default',
     49             'retry_after' => 90,
     50             'block_for' => 0,
     51             'after_commit' => false,
     52         ],
     53 
     54         'sqs' => [
     55             'driver' => 'sqs',
     56             'key' => env('AWS_ACCESS_KEY_ID'),
     57             'secret' => env('AWS_SECRET_ACCESS_KEY'),
     58             'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
     59             'queue' => env('SQS_QUEUE', 'default'),
     60             'suffix' => env('SQS_SUFFIX'),
     61             'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
     62             'after_commit' => false,
     63         ],
     64 
     65         'redis' => [
     66             'driver' => 'redis',
     67             'connection' => 'default',
     68             'queue' => env('REDIS_QUEUE', 'default'),
     69             'retry_after' => 90,
     70             'block_for' => null,
     71             'after_commit' => false,
     72         ],
     73 
     74     ],
     75 
     76     /*
     77     |--------------------------------------------------------------------------
     78     | Job Batching
     79     |--------------------------------------------------------------------------
     80     |
     81     | The following options configure the database and table that store job
     82     | batching information. These options can be updated to any database
     83     | connection and table which has been defined by your application.
     84     |
     85     */
     86 
     87     'batching' => [
     88         'database' => env('DB_CONNECTION', 'mysql'),
     89         'table' => 'job_batches',
     90     ],
     91 
     92     /*
     93     |--------------------------------------------------------------------------
     94     | Failed Queue Jobs
     95     |--------------------------------------------------------------------------
     96     |
     97     | These options configure the behavior of failed queue job logging so you
     98     | can control which database and table are used to store the jobs that
     99     | have failed. You may change them to any database / table you wish.
    100     |
    101     */
    102 
    103     'failed' => [
    104         'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
    105         'database' => env('DB_CONNECTION', 'mysql'),
    106         'table' => 'failed_jobs',
    107     ],
    108 
    109 ];