mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
update information on queues
This documents the error resolution for users utilizing a different redis_client and the possibility that they may come across REDIS trying to create a connection when there isn't any connector for that connection
This commit is contained in:
parent
3387736baa
commit
d1ce93ad09
1 changed files with 3 additions and 1 deletions
|
|
@ -26,6 +26,8 @@ To force the database queue driver to use the central connection, open your `que
|
|||
|
||||
Make sure the connection used by the queue is not in `tenancy.redis.prefixed_connections`.
|
||||
|
||||
>If you are making use of a different `REDIS_CLIENT ` other than `phpredis` (which is the default on most Laravel apps), you may run into an error indicating that Laravel `tried to set a connection on null` in the RedisManager class. Defaulting back to `phpredis` as the `REDIS_CLIENT` should fix this issue.
|
||||
|
||||
## Central queues {#central-queues}
|
||||
|
||||
Jobs dispatched from the central context will remain central. However, it's recommended not to mix queue **connections** for central & tenant jobs due to potential leftover global state, e.g. central jobs thinking they're in the previous tenant's context.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue