Skip to content

Commit

Permalink
[10.x] Document maintenance mode with Horizon (#9233)
Browse files Browse the repository at this point in the history
* Document maintenance mode with Horizon

* Update horizon.md

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
driesvints and taylorotwell authored Jan 1, 2024
1 parent b02d189 commit 2f5da82
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions horizon.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ As you can see in Horizon's default configuration file, each environment can con

You may add additional supervisors to a given environment if you would like to define a new group of worker processes that should run in that environment. You may choose to do this if you would like to define a different balancing strategy or worker process count for a given queue used by your application.

<a name="maintenance-mode"></a>
#### Maintenance Mode

While your application is in [maintainance mode](/docs/{{version}}/configuration#maintenance-mode), queued jobs will not be processed by Horizon unless the supervisor's `force` option is defined as `true` within the Horizon configuration file:

'environments' => [
'production' => [
'supervisor-1' => [
// ...
'force' => true,
],
],
],

<a name="default-values"></a>
#### Default Values

Expand Down

0 comments on commit 2f5da82

Please sign in to comment.