From 564a3e60d90bd916ee7dca1f486d65853b578bdc Mon Sep 17 00:00:00 2001 From: wss-git Date: Wed, 3 Aug 2022 17:05:53 +0800 Subject: [PATCH] build: 1.0.2 --- publish.yaml | 2 +- src/utils/handlerRequest/function.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/publish.yaml b/publish.yaml index 4420c6c..9d90542 100644 --- a/publish.yaml +++ b/publish.yaml @@ -2,7 +2,7 @@ Type: Component Name: devscomp/lambda Provider: - AWS -Version: 1.0.1 +Version: 1.0.2 Description: 快速部署 Lambda 到 AWS HomePage: https://github.com/Serverless-Devs-Awesome/lambda-aws-component Tags: diff --git a/src/utils/handlerRequest/function.js b/src/utils/handlerRequest/function.js index 7ebc3b9..d65ea84 100644 --- a/src/utils/handlerRequest/function.js +++ b/src/utils/handlerRequest/function.js @@ -94,8 +94,8 @@ class Function { if (!functionInput.Role) { retry = 5; functionInput.Role = await this.createRole(functionName); - Logger.log('Start trying to create functions after 6 seconds of sleep.', 'yellow'); - await sleep(6000); + Logger.log('Start trying to create functions after 10 seconds of sleep.', 'yellow'); + await sleep(10 * 1000); } try {