Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ serverless deploy
```

可以通过添加 inputs 参数设置预置并发,例如:为版本 1 设置 4 个预置并发(如果不指定版本会新发布一个版本,并为新版本设置并发)
| 参数名 | 是否必选 | 说明 |类型 |
| --------- | -------- | --------- |-------------------------------------------------------- |
| provisionedNum | 否 |int| 预置并发的数量 |
| qualifier | 否 |int| 设置预置并发的版本。 |

```
serverless deploy --inputs provisionedNum=4 qualifier=1
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.9.1
version: 0.9.3
author: Tencent Cloud, Inc.
org: Tencent Cloud, Inc.
description: 单函数组件,允许用户开发部署单个腾讯 SCF 函数实例。适合进行单一函数开发的场景。如:定时触发任务。
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"dependencies": {
"adm-zip": "^0.5.5",
"download": "^8.0.0",
"tencent-component-toolkit": "^2.22.2",
"tencent-component-toolkit": "^2.23.1",
"type": "^2.0.0"
}
}
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const formatInputs = async (instance, credentials, appId, inputs) => {
getDefaultServiceName(instance)

let { serviceId } = currentEvent.parameters
// currentEvent.parameters.isInputServiceId = !!serviceId
currentEvent.parameters.isInputServiceId = !!serviceId
// currentEvent.parameters.serviceName = serviceName
currentEvent.parameters.description =
currentEvent.parameters.description || getDefaultServiceDescription(instance)
Expand Down