ajmath / serverless-offline-scheduler

MIT License
96 stars 40 forks source link

Recompiling on each execution #44

Open tomusiaka opened 4 years ago

tomusiaka commented 4 years ago

We are using serverless-plugin-typescript plugin and we have a Lambda function running once a minute. Each time the function executes, it looks like serverless.yml file is being parsed (since I see my typical warnings about serverless.yml file on each execution) and TypeScript is being recompiled causing some serious delays and resulting with high CPU usage most of the time - by the time one execution completes compiling and executing, the next execution needs to run.

I'm not sure if Serverless framework allows for that but ideally the plugin would reuse already parsed serverless.yml configuration from when severless offline was executed and it would reuse already compiled TypeScript files. This might be related to #34.

olegario96 commented 4 years ago

Same issue here.