queue.failed central db

This commit is contained in:
Samuel Štancl 2019-10-07 20:39:52 +02:00 committed by GitHub
parent 1db6311790
commit 8daf788526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. 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 ```php
'connection' => 'mysql', '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. 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`.**