Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ff4a09

Browse files
committed
Chore: 定义执行队列名称
1 parent bd5e026 commit 5ff4a09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎laravel/app/Listeners/ApiExcelListener.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
use App\Events\ApiExcelEvent;
66
use App\Http\Repository\MultithreadingRepository;
77
use App\Models\ApiExcel;
8-
use Illuminate\Queue\InteractsWithQueue;
98
use Illuminate\Contracts\Queue\ShouldQueue;
109
use Illuminate\Support\Facades\Log;
1110

1211
class ApiExcelListener implements ShouldQueue
1312
{
13+
public $connection = 'redis';
14+
15+
public $queue = 'cha_queue_excel';
16+
1417
/**
1518
* 任务运行的超时时间。
1619
*

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /