diff --git a/README.md b/README.md index a8c4d1c..bfbbd35 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,7 @@ All rights reserved。 ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。 更多细节参阅 [LICENSE.txt](LICENSE.txt) + + + +php think queue:listen --queue helloJobQueue \ No newline at end of file diff --git a/config/queue.php b/config/queue.php index 8744b86..a06b784 100644 --- a/config/queue.php +++ b/config/queue.php @@ -10,30 +10,31 @@ // +---------------------------------------------------------------------- return [ - 'default' => 'sync', + 'default' => 'database', 'connections' => [ - 'sync' => [ - 'type' => 'sync', - ], + // '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' => 'prefix_jobs', + // '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', ], + ];