-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack compile lambda's sequentially #536
Comments
This would be a really nice feature to have. This issue is keeping me from being able to package my functions individually because it hogs the threads and crashes in a CI environment. |
It looks like this is being worked on: #570 |
Regardless of #570 this one would be nice to have -
|
This would be great to have indeed! |
At least in my current version (5.8.0) you can set the desired concurrency. I guess setting concurrency to 1 would make it sequential.
|
This should be well resolved via concurrency, please reopen if the problem persists. |
This is a (Bug Report / Feature Proposal)
Description
Deploying an individual lambda function in our project (including compiling/packaging/deploying) takes only 4-5seconds. We have around 40+ lamda's in our project. When we do a full serverless deploy of all function, serverless will launch the webpack compiler for all 40 functions at the same time. This results in 100% CPU usage for 13 minutes because all the threads cannabalize on each other (also my computer because unbearable slow because of the CPU hog).
If all 40 functions would be compiled sequentially it should take around 5*40 = 2,5 to 3 minutes to compile everything (10 times faster!).
What would really help is a simple config flag that launches all compile threads sequentially instead.
custom:
webpack:
webpackConfig: 'webpack.config.js'
sequentially: true
The text was updated successfully, but these errors were encountered: