How to use multiple database connections in worker

Hi,

I am using yii-queue task asynchronous task. According to the type of task, the database connection is not the same in worker processing.

My application is multi-tenant, each tenant is a separate database

Hi, check this: yii2 - Multiple database connections and Yii 2.0 - Stack Overflow

1 Like