Php 用于元数据的Laravel horizon独立连接
在Php 用于元数据的Laravel horizon独立连接,php,laravel,redis,horizon,Php,Laravel,Redis,Horizon,在horizon.php第42行中: /* |-------------------------------------------------------------------------- | Horizon Redis Connection |-------------------------------------------------------------------------- | | This is the name of the R
horizon.php第42行中
:
/*
|--------------------------------------------------------------------------
| Horizon Redis Connection
|--------------------------------------------------------------------------
|
| This is the name of the Redis connection where Horizon will store the
| meta information required for it to function. It includes the list
| of supervisors, failed jobs, job metrics, and other information.
|
*/
'use' => 'connectionA',
这用于保存作业的所有元数据,假设我有2个连接,即连接A和B,如何保存连接A和连接B中的元数据?
从这个配置来看,似乎只能在1个连接中保存所有元数据。
如何为每个连接分离它
我想要实现的目标:
SwiftDoJob::dispatch($logId)->onConnection('connectionA')->onQueue('queueA'); // how to make this will save the metadata to connection A?
SwiftDoJob::dispatch($logId)->onConnection('connectionB')->onQueue('queueB'); // how to make this will save the metadata to connection B?