Running on AWS Lambda, the PromisePool resolves after the first batch, does not run till the end #4944
Unanswered
ccovarrubias
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version
nodejs14.x
Platform
AWS lambda
Subsystem
Amazon AMI
What steps will reproduce the bug?
No response
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
When I run this code:
inside an AWS lambda handler, I expect the first
await
to resolve until the end of mycrawledData
array.What do you see instead?
e.g., If I set concurrency = 5, The lambda exits after the first 5 iterated elements; it seems that the external
await
receives theresolve
signal from thePromisePool
and continues with the code execution, that (in my case) results in the end of the process and kills the execution.Additional information
Any help or suggestion will be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions