Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Workers Sites asset sync reliability (#3098)
* Improve Workers Sites asset sync reliability - When splitting upload into buckets, just store the file path, not the full content. This means we have to read the contents twice, but avoids buffering all content before uploading, causing OOMs. - Limit in-flight bulk upload requests to 5, avoiding `Too many bulk operations already in progress.` error. - Fix logging of upload progress. Previous, progress was logged per upload bucket, which doesn't really make sense to end users. Now, upload progress is across all files in all buckets. - Only log first 100 changed assets by default. The rest can be shown by setting `WRANGLER_LOG=debug`. This avoids console spam when uploading sites with 1000s of files. A little bit of colour has also been added to the diff. :) Closes #2223 Closes #2245 * fixup! Improve Workers Sites asset sync reliability Move fetching list log * fixup! Improve Workers Sites asset sync reliability Read files for upload in serial * fixup! Improve Workers Sites asset sync reliability Add test for upload failing * fixup! Improve Workers Sites asset sync reliability Ensure publish tests not dependent on bucket upload order
- Loading branch information