Jelajahi Sumber

更改queue配置

sandm 2 tahun lalu
induk
melakukan
98a0cce166
2 mengubah file dengan 1 tambahan dan 39 penghapusan
  1. 1 0
      .gitignore
  2. 0 39
      config/queue.php

+ 1 - 0
.gitignore

@@ -8,3 +8,4 @@ storage
 vendor
 runtime
 /app/test
+/config/queue.php

+ 0 - 39
config/queue.php

@@ -1,39 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
-// +----------------------------------------------------------------------
-// | Author: yunwuxin <448901948@qq.com>
-// +----------------------------------------------------------------------
-
-return [
-    'default'     => 'redis',
-    'connections' => [
-        'sync'     => [
-            'type' => 'sync',
-        ],
-        'database' => [
-            'type'       => 'database',
-            'queue'      => 'default',
-            'table'      => 'jobs',
-            'connection' => null,
-        ],
-        'redis'    => [
-            'type'       => 'redis',
-            'queue'      => 'default',
-            'host'       => '127.0.0.1',
-            'port'       => 6379,
-            'password'   => '',
-            'select'     => 0,
-            'timeout'    => 0,
-            'persistent' => false,
-        ],
-    ],
-    'failed'      => [
-        'type'  => 'none',
-        'table' => 'failed_jobs',
-    ],
-];