1

horizon.php line 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?
4

0 回答 0