daily-apps | Everything you see on Daily 👀 | Blockchain library
kandi X-RAY | daily-apps Summary
kandi X-RAY | daily-apps Summary
Please check the new repository dailydotdev/apps.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of daily-apps
daily-apps Key Features
daily-apps Examples and Code Snippets
Community Discussions
Trending Discussions on daily-apps
QUESTION
I'm creating an AWS lambda function that is supposed to regularly backup an AppSync API on S3 (it is fired by a CloudWatch schedule rule). It's based on a class that, for each API passed as the function args (using environment variables) runs a backup job for each element of the API.
If I run it using only node, it works without any issue.
However, when I deploy or test locally using the serverless framework (serverless deploy
and serverless invoke local -f backup
), the execution stops at the first asynchronous instruction in a scope other than that of the handler function, whether I use a callback, a Promise.then() or the async/await syntax.
I've considered, running multiple lambda functions for each part of the backup operation, but then I would lose the shared context, which I need to ensure that every part of the backup is done correctly.
In handler.js
ANSWER
Answered 2019-May-03 at 12:40Ok so I've found a solution, I just did this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install daily-apps
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page