Created
July 29, 2017 15:55
-
-
Save emir/d58a0fe68c4a03c8e74c2515571d6621 to your computer and use it in GitHub Desktop.
config/horizon.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | 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', | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | 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, | |
| ], | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | 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' => [ | |
| 'supervisor-1' => [ | |
| 'connection' => 'redis', | |
| 'queue' => ['default'], | |
| 'balance' => 'simple', | |
| 'processes' => 10, | |
| 'tries' => 3, | |
| ], | |
| ], | |
| 'local' => [ | |
| 'supervisor-1' => [ | |
| 'connection' => 'redis', | |
| 'queue' => ['default'], | |
| 'balance' => 'simple', | |
| 'processes' => 3, | |
| 'tries' => 3, | |
| ], | |
| ], | |
| ], | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment