mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
queue.failed central db
This commit is contained in:
parent
1db6311790
commit
8daf788526
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ Jobs are automatically multi-tenant, which means that if a job is dispatched whi
|
|||
|
||||
Open `config/queue.php` and make sure your queue driver has an explicitly set connection. Otherwise it would use the default one, which would cause issues, since `database.default` is changed by the package and Redis connections are prefixed.
|
||||
|
||||
**If you're using `database`, add a new line to `queue.connections.database`:**
|
||||
**If you're using `database`, add a new line to `queue.connections.database` and `queue.failed`:**
|
||||
```php
|
||||
'connection' => 'mysql',
|
||||
```
|
||||
|
|
@ -22,4 +22,4 @@ where `'mysql'` is the name of your non-tenant database connection with a `jobs`
|
|||
|
||||
Also make sure you run the queue migrations **for the central database**, not your tenants.
|
||||
|
||||
**If you're using Redis, make sure its `'connection'` is not in `tenancy.redis.prefixed_connections`.**
|
||||
**If you're using Redis, make sure its `'connection'` is not in `tenancy.redis.prefixed_connections`.**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue