Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Recompiling on each execution #44

Open
tomusiaka opened this issue Feb 21, 2020 · 1 comment
Open

Recompiling on each execution #44

tomusiaka opened this issue Feb 21, 2020 · 1 comment

Comments

@tomusiaka
Copy link

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
Copy link

Same issue here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants