Skip to content

Commit f3f7969

Browse files
[12.x] Add silenced_tags configuration docs (#10808)
* Add silenced tags configuration docs * Add tags reference link * Update horizon.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent dcf901c commit f3f7969

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

horizon.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ Sometimes, you may not be interested in viewing certain jobs dispatched by your
242242
],
243243
```
244244

245+
In addition to silencing individual job classes, Horizon also supports silencing jobs based on [tags](#tags). This can be useful if you want to hide multiple jobs that share a common tag:
246+
247+
```php
248+
'silenced_tags' => [
249+
'notifications'
250+
],
251+
```
252+
245253
Alternatively, the job you wish to silence can implement the `Laravel\Horizon\Contracts\Silenced` interface. If a job implements this interface, it will automatically be silenced, even if it is not present in the `silenced` configuration array:
246254

247255
```php

0 commit comments

Comments
 (0)