Closed mnapoli closed 2 years ago
I didn't run into it yet but it is a problem, indeed. Silencing error isn't really a solution I think, because all the update operations will trigger anyway multiple times if CLI is run in parallel. I think we will have to do one of the following:
serverless
cli, which would handle the autoupdate operationRely on direct integration with serverless cli, which would handle the autoupdate operation
Oh good point, since this is our goal eventually auto-update will happen in the root command. We just need to make sure it isn't triggered in sub-commands (because it's useless), and we could implement that right now to avoid the problem while we still have an independent CLI. Is there an environment variable we can set to disable autoupdating?
At the moment we don't have such a variable - we would have to add it to the Framework
Hello @mnapoli - ahead of our upcoming public beta, it seems like something that might become an issue sooner or later - should we move it up on the list of our priorities and find out a potential solution for it?
@pgrzesik I forgot about that from our discussion this morning. Yes, it would be great to solve that.
Should we introduce an env variable in Serverless Framework to disable auto-updates? Do you see a better alternative?
I forgot to mention it as well when we talked today 🤦 I think the lowest-effort solution would be to introduce an env variable for that in the Framework. It is also possible to ask people to disable autoupdates globally in a manual way, but I think it's a worse solution because it discourages updates in general for users and requires an additional manual step for them.
OK I'll add that to the TODO list 👍
I got this error today and I think it's caused by the auto-update triggering multiple times in parallel. The output is incomplete because of the CLI redraw, but I have multiple services deploying in parallel:
I had to manually reinstall
serverless
after that because the CLI did not exist anymore.If that's indeed it, I'm not sure what's the best course of action. Would silencing auto-update errors in SF be enough?