You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[12.x] add warning about Horizon timeout killing long jobs during auto-scaling (#10792)
* docs(horizon): add warning about Horizon timeout killing long jobs during auto scaling
* Update horizon.md
---------
Co-authored-by: Taylor Otwell <taylor@laravel.com>
Copy file name to clipboardExpand all lines: horizon.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,7 +200,7 @@ Similarly, you can set a `timeout` value at the supervisor level, which specifie
200
200
```
201
201
202
202
> [!WARNING]
203
-
> The`timeout` value should always be at least a few seconds shorter than the `retry_after` value defined in your `config/queue.php` configuration file. Otherwise, your jobs may be processed twice.
203
+
> When using the `auto` balancing strategy, Horizon will consider in-progress workers as "hanging" and force-kill them after the Horizon timeout during scale down. Always ensure the Horizon timeout is greater than any job-level timeout, otherwise jobs may be terminated mid-execution. In addition, the`timeout` value should always be at least a few seconds shorter than the `retry_after` value defined in your `config/queue.php` configuration file. Otherwise, your jobs may be processed twice.
0 commit comments