-
Notifications
You must be signed in to change notification settings - Fork 337
Bug: Downtime on Site update #783
Comments
Any updates on this? :) @ashleygwilliams @ashleymichal |
hey @lolcoolkat I'll likely be investigating this on Friday, and will comment here with my conclusions. |
Thank you! @ashleymichal |
so here's what happens. Say i have an asset "/sweet-blog-post.html": "/sweet-blog-post.abcdef.html" If I update my sweet blog post, the next time Wrangler goes to upload, the content hash changes (e.g. Unfortunately, the old version is deleted before the new asset manifest is uploaded with the worker, and so there is a window during which the old worker is trying to reference the deleted asset. This is sub-optimal. We can reduce this window significantly by delaying deletes until after the worker has been published. |
i'm going to defer work on this until the work on Multi-Route support has been approved and merged, there's a lot of changes to the publish command there, and there will be here as well. My proposed solution implementation:
|
status update: i've got a good amount of work done locally, but the number of in flight PRs, releases, and feature work being done coupled with a CI bug has me a little nervous about going much further with this, given the number of potential merge conflicts. will resume work once 1.7.0 is out. |
@ashleymichal are there any updates for this? This issue is a massive blocker for us, so, if the fix is going to take time then maybe we need to get a smaller interim fix in (e.g. an option to never delete resources from the KV store?). If I can contribute to getting this solved let me know. |
When we publish a
site
worker, often the worker and its accompanying asset manifest make it to the edge ahead of the new KV keys, and/or the "old" KV keys are removed before the worker is updated. This causes a window of downtime when a page is updated. We need to somehow delay removing "old" assets from KV until everything is live. There are a few ways to implement this, will update this issue with possible strategies soon.The text was updated successfully, but these errors were encountered: