Add paragraph about queue tenancy bootstrapper's $forceRefresh (#218)

This commit is contained in:
lukinovec 2022-10-10 20:37:24 +02:00 committed by GitHub
parent fe84b4186f
commit 5ab19201c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,8 @@ public function boot()
This bootstrapper adds the current tenant's ID to the queued job payloads, and initializes tenancy based on this ID when jobs are being processed. This bootstrapper adds the current tenant's ID to the queued job payloads, and initializes tenancy based on this ID when jobs are being processed.
The bootstrapper has a static `$forceRefresh` property which is `false` by default. Setting the property to `true` will make tenancy re-initialize for each queued job. This is useful when you're changing the tenant's state (e.g. properties in the `data` column) and want the next job to initialize tenancy again with the new data. Features like the Tenant Config are only executed when tenancy is initialized, so the re-initialization is needed in some cases.
You can read more about this on the *Queues* page: You can read more about this on the *Queues* page:
[Queues]({{ $page->link('queues') }}) [Queues]({{ $page->link('queues') }})