Skip to content

Commit

Permalink
fix: support retry for ckafka trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun authored and Yuga Sun committed Oct 19, 2020
1 parent ba5dd7e commit afcff9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ inputs:
maxMsgNum: 999
offset: latest
enable: true
retry: 10000
```
## 配置描述
Expand Down Expand Up @@ -297,6 +298,7 @@ inputs:
| topic | 是 | string | | 支持在 CKafka 实例中已经创建的 Topic。 |
| maxMsgNum | 是 | number | | 5 秒内每汇聚 maxMsgNum 条 Ckafka 消息,则触发一次函数调用 |
| offset | 是 | string | | offset 为开始消费 Ckafka 消息的位置,目前只能填写 `latest` |
| retry | 是 | number | | 重试次数,函数调用失败时的最大重试次数。 |
| enable | 否 | boolean | `true` | 触发器是否启用。默认启用 |

#### apigw 触发器参数
Expand Down
2 changes: 1 addition & 1 deletion serverless.component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: scf
version: 0.1.7
version: 0.1.8
author: Tencent Cloud, Inc.
org: Tencent Cloud, Inc.
description: Deploy a serverless cloud function on Tencent Cloud.
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"download": "^8.0.0",
"tencent-component-toolkit": "^1.16.4",
"tencent-component-toolkit": "^1.17.4",
"type": "^2.0.0"
}
}

0 comments on commit afcff9e

Please sign in to comment.