File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ Type: Plugin
2
2
Name : keep-warm-fc
3
3
Provider :
4
4
- 阿里云
5
- Version : 0.0.4
6
- Description : 定时请求url的辅助函数
5
+ Version : 0.0.5
6
+ Description : 定时触发器预热函数,有效降低冷启动的概率
7
7
HomePage : https://github.com/devsapp/keep-warm-fc
8
8
Tags : # 标签详情
9
9
- Serverless Devs
Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ module.exports = async function index(inputs, args = {}) {
18
18
}
19
19
const instance = await loadComponent ( "devsapp/fc" ) ;
20
20
const service = lodash . get ( inputs , "props.service" ) ;
21
-
21
+ const serviceFunction = lodash . get ( inputs , "props.function" ) ;
22
22
23
- const WARM_FC_FUNCTION_NAME = `_FC_PLUGIN_keep-warm-${ lodash . get ( service , 'name' ) } -${ lodash . get ( inputs , "props.function. name" ) } ` ;
23
+ const WARM_FC_FUNCTION_NAME = `_FC_PLUGIN_keep-warm-${ lodash . get ( service , 'name' ) } -${ lodash . get ( serviceFunction , ' name' ) } ` ;
24
24
25
25
const newInputs = lodash . assign ( { } , inputs , {
26
26
props : {
27
27
service,
28
28
region : lodash . get ( inputs , "props.region" ) ,
29
29
function : {
30
30
name : WARM_FC_FUNCTION_NAME ,
31
- description : "Serverless Devs Web Framework Helper Function" ,
31
+ description : `当前定时函数由Serverless Devs自动创建,用于定时预热函数【 ${ lodash . get ( serviceFunction , 'name' ) } 】` ,
32
32
codeUri : path . join ( __dirname , "helper" ) ,
33
33
runtime : "python3" ,
34
34
timeout : 1 ,
You can’t perform that action at this time.
0 commit comments