From 18b8a28d132b8c18c2d4c679fef33f561d8ccbcd Mon Sep 17 00:00:00 2001 From: liqi Date: Mon, 6 Jan 2025 15:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config/main.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/config/main.php b/common/config/main.php index 1a7a064..9b72124 100644 --- a/common/config/main.php +++ b/common/config/main.php @@ -23,8 +23,11 @@ return [ 'class' => \yii\queue\db\Queue::class, 'db' => 'db', // DB connection component or its config 'tableName' => '{{%queue4}}', // Table name - 'channel' => 'default', // Queue channel key - 'mutex' => \yii\mutex\MysqlMutex::class, + 'channel' => 'queue4', // Queue channel key + 'mutex' => [ + 'class' => \yii\mutex\MysqlMutex::class, + 'mutex' => 'queue4_', + ], 'ttr' => 5 * 60, // Max time for job execution 'attempts' => 3, // Max number of attempts 'as log' => \yii\queue\LogBehavior::class,