Skip to content

Commit

Permalink
Document Horizon job trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Oct 26, 2018
1 parent cd3cae9 commit bbe13cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions horizon.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ Horizon allows you to choose from three balancing strategies: `simple`, `auto`,

The `auto` strategy adjusts the number of worker processes per queue based on the current workload of the queue. For example, if your `notifications` queue has 1,000 waiting jobs while your `render` queue is empty, Horizon will allocate more workers to your `notifications` queue until it is empty. When the `balance` option is set to `false`, the default Laravel behavior will be used, which processes queues in the order they are listed in your configuration.

#### Job Trimming

You may configure Horizon on how long it should persists recent and failed jobs in the `horizon.php` config file. Typically, recent jobs are kept for one hour while all failed jobs are stored for an entire week:

'trim' => [
'recent' => 60,
'failed' => 10080,
],

<a name="dashboard-authentication"></a>
### Dashboard Authentication

Expand Down

0 comments on commit bbe13cd

Please sign in to comment.