| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 | <?phpreturn [    /*    |--------------------------------------------------------------------------    | Horizon Redis Connection    |--------------------------------------------------------------------------    |    | This is the name of the Redis connection where Horizon will store the    | meta information required for it to function. It includes the list    | of supervisors, failed jobs, job metrics, and other information.    |    */    'use' => 'default',    /*    |--------------------------------------------------------------------------    | Horizon Redis Prefix    |--------------------------------------------------------------------------    |    | This prefix will be used when storing all Horizon data in Redis. You    | may modify the prefix when you are running multiple installations    | of Horizon on the same server so that they don't have problems.    |    */    'prefix' => env('HORIZON_PREFIX', 'horizon:'),    /*    |--------------------------------------------------------------------------    | Queue Wait Time Thresholds    |--------------------------------------------------------------------------    |    | This option allows you to configure when the LongWaitDetected event    | will be fired. Every connection / queue combination may have its    | own, unique threshold (in seconds) before this event is fired.    |    */    'waits' => [        'redis:default' => 60,    ],    /*    |--------------------------------------------------------------------------    | Job Trimming Times    |--------------------------------------------------------------------------    |    | Here you can configure for how long (in minutes) you desire Horizon to    | persist the recent and failed jobs. Typically, recent jobs are kept    | for one hour while all failed jobs are stored for an entire week.    |    */    'trim' => [        'recent' => 60,        'failed' => 10080,    ],    /*    |--------------------------------------------------------------------------    | Fast Termination    |--------------------------------------------------------------------------    |    | When this option is enabled, Horizon's "terminate" command will not    | wait on all of the workers to terminate unless the --wait option    | is provided. Fast termination can shorten deployment delay by    | allowing a new instance of Horizon to start while the last    | instance will continue to terminate each of its workers.    |    */    'fast_termination' => false,    /*    |--------------------------------------------------------------------------    | Queue Worker Configuration    |--------------------------------------------------------------------------    |    | Here you may define the queue worker settings used by your application    | in all environments. These supervisors and settings handle all your    | queued jobs and will be provisioned by Horizon during deployment.    |    */    'environments' => [        'production' => [            env('APP_NAME', 'jsaix').'-supervisor-1' => [                'connection' => 'redis',                'queue' => ['default', 'email', 'pay', 'search'],                'balance' => 'auto',                'processes' => 8,                'tries' => 3,            ],            env('APP_NAME', 'jsaix').'-supervisor-2' => [                'connection' => 'redis',                'queue' => ['sms'],                'balance' => 'simple',                'processes' => 1,                'tries' => 1,            ],            env('APP_NAME', 'jsaix').'-supervisor-3' => [                'connection' => 'redis',                'queue' => ['sys_message'],                'balance' => 'simple',                'processes' => 1,                'tries' => 1,            ],            'jucai-supervisor-1' => [                'connection' => 'redis',                'queue' => ['ticket'],                'balance' => 'auto',                'processes' => 10,                'tries' => 3,            ],        ],        'local' => [            env('APP_NAME', 'jsaix').'-supervisor-1' => [                'connection' => 'redis',                'queue' => ['default', 'email', 'pay', 'search'],                'balance' => 'auto',                'processes' => 8,                'tries' => 3,            ],            env('APP_NAME', 'jsaix').'-supervisor-2' => [                'connection' => 'redis',                'queue' => ['sms'],                'balance' => 'simple',                'processes' => 1,                'tries' => 1,            ],            env('APP_NAME', 'jsaix').'-supervisor-3' => [                'connection' => 'redis',                'queue' => ['sys_message'],                'balance' => 'simple',                'processes' => 1,                'tries' => 1,            ],            env('APP_NAME', 'jsaix').'-supervisor-4' => [                'connection' => 'redis',                'queue' => ['ticket'],                'balance' => 'auto',                'processes' => 10,                'tries' => 1,            ],        ],    ],];
 |