Skip to content

Commit e34e6ef

Browse files
committedApr 21, 2015
review queues.md
1 parent 7ceb0b6 commit e34e6ef

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed
 

‎queues.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Queues
1+
# 队列
22

33
- [配置信息](#configuration)
44
- [基本用法](#basic-usage)
@@ -17,7 +17,7 @@ Lumen 支持 数据库, [Beanstalkd](http://kr.github.com/beanstalkd), [IronMQ](
1717

1818
请在 `.env` 文件里面配置 `QUEUE_DRIVER` 参数来指定队列驱动器.
1919

20-
### Q队列数据表
20+
### 队列数据表
2121

2222
为了能够使用 `database` 驱动,你需要建立一个数据表来保存工作。要使用一个迁移建立这个数据表,下面是表结构.
2323

@@ -140,7 +140,7 @@ You may also pass an array as the third argument to the `dispatchFrom` method. T
140140
]);
141141

142142
<a name="queueing-closures"></a>
143-
## Queueing Closures
143+
## 队列闭包
144144

145145
> **Note:** 使用队列闭包的话, 你需要安装 `jeremeamia/superclosure` (~2.0)
146146
@@ -234,11 +234,6 @@ Lumen 内含一个 Artisan 命令,它将推送到队列的工作拉来下执
234234
<a name="failed-jobs"></a>
235235
## 已失败的工作
236236

237-
Since things don't always go as planned, sometimes your queued jobs will fail. Don't worry, it happens to the best of us! Lumen and Lumen include a convenient way to specify the maximum number of times a job should be attempted. After a job has exceeded this amount of attempts, it will be inserted into a `failed_jobs` table.
238-
239-
The `failed_jobs` table should have a schema like the following:
240-
241-
242237
事情往往不会如你预期的一样,有时候你推送工作到队列会失败,别担心,Lumen 包含一个简单的方法去指定一个工作最多可以被执行几次,在工作被执行到一定的次数时,他将会添加至 `failed_jobs` 数据表里,下面是表结构:
243238

244239
Schema::create('failed_jobs', function(Blueprint $table)

0 commit comments

Comments
 (0)
Please sign in to comment.