Add note about Horizon being used in the central app

This commit is contained in:
lukinovec 2022-08-26 15:00:42 +02:00
parent 2769460a1a
commit 72944c3916

View file

@ -5,12 +5,13 @@ section: content
--- ---
# Laravel Horizon {#laravel-horizon} # Laravel Horizon {#laravel-horizon}
> Note: **Horizon is used in the central app**. You can separate the jobs by [tagging them with tenant IDs](#tags).
Make sure your [queues]({{ $page->link('queues') }}) are configured correctly before using this. Make sure your [queues]({{ $page->link('queues') }}) are configured correctly before using this.
## Tags {#tags} ## Tags {#tags}
You may add the current tenant's id to your job tags by defining a `tags` method on the class: You may add the current tenant's ID to your job tags by defining a `tags` method on the class:
```php ```php
/** /**
@ -24,4 +25,4 @@ public function tags()
'tenant:' . tenant('id'), 'tenant:' . tenant('id'),
]; ];
} }
``` ```