Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gojuukaze committed Mar 16, 2020
1 parent c7bf898 commit a760bfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ ser := ytask.Server.NewServer(
* 状态: 任务的开始、运行、成功、失败状态
* 结果: 函数的返回值

* StatusExpires,ResultExpires对mongo backend无效,0代表不存储,>0代表永久存储

### 注册任务
使用`Add`注册任务
```go
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ go get github.com/gojuukaze/YTask/v2
# todo
- [x] save result
- [x] task retry
- [x] support RabbitMQ
- [ ] run multi group
- [ ] more option in TaskCtl
- [x] support more type
Expand Down Expand Up @@ -210,6 +209,9 @@ ser := ytask.Server.NewServer(
| StatusExpires | | 1day | ytask\.Config\.StatusExpires | "task status expires in ex seconds, \-1:forever" |
| ResultExpires | | 1day | ytask\.Config\.ResultExpires | "task result expires in ex seconds, \-1:forever" |

* StatusExpires, ResultExpires is not valid for Mongo backend, 0 means no storage, > 0 means permanent storage


### add worker func

```go
Expand Down

0 comments on commit a760bfd

Please sign in to comment.