You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying a new snapshot we currently stop the existing flows, npm install the dependencies, then start the new flows.
Depending on how much work npm has to do, this can lead to prolonged downtime of the flows. We want to look at strategies for reducing this downtime to a minimum.
The npm cache work recently added is one way to skip the npm step - but that assumes you know ahead of time exactly what needs to be installed on the device and you lose some flexibility.
Other options we should consider:
compare the new package.json with what's already there and skip the npm install step if everything appears in order. Need to assess how risky this is - we rely on npm to ensure everything is in order even though that takes a bit of time.
look at what flags we passing to npm to minimise what its doing (production-only, skip audit etc)
do not stop the existing flows until after npm install has completed and we're ready to run the new flows. This will require running the install in a clean directory (thereby losing some of efficiencies npm has when rerunning it in an existing dir, unless we clone node_modules first). This will need some investigation.
The text was updated successfully, but these errors were encountered:
When deploying a new snapshot we currently stop the existing flows, npm install the dependencies, then start the new flows.
Depending on how much work npm has to do, this can lead to prolonged downtime of the flows. We want to look at strategies for reducing this downtime to a minimum.
The npm cache work recently added is one way to skip the npm step - but that assumes you know ahead of time exactly what needs to be installed on the device and you lose some flexibility.
Other options we should consider:
The text was updated successfully, but these errors were encountered: