Skip to content

Commit a9dfcd7

Browse files
committed
fix(task): 超时设置为一小时
1 parent 31e13c2 commit a9dfcd7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

laravel/app/Listeners/ApiExcelListener.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111

1212
class ApiExcelListener implements ShouldQueue
1313
{
14+
/**
15+
* 任务运行的超时时间。
16+
*
17+
* @var int
18+
*/
19+
public $timeout = 3600;
20+
1421
/**
1522
* 失败重试次数
1623
*

0 commit comments

Comments
 (0)