cloudflare / cloudflare/workers-sdk
Delay before asset upload starts
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.5k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 186
Description
### What versions & operating system are you using?
wrangler 4.114.0, nodejs@24.18.0, bun@1.3.14
### Please provide a link to a minimal reproduction
-
### Describe the Bug
There is a significant delay during the asset upload phase of Cloudflare Workers Builds.
Build log:
07:09:51.772
🌀 Building list of assets...
07:09:51.999
✨ Read 16280 files from the assets directory /opt/buildhome/repo/dist/client
07:10:53.507
🌀 Starting asset upload...
07:10:56.453
🌀 Found 486 new or modified static assets to upload. Proceeding with upload...
The asset directory is read almost immediately ("07:09:51.999"), but asset upload does not start until approximately 61.5 seconds later ("07:10:53.507").
Expected behavior
After reading the asset directory and determining the files to upload, the upload process should begin without a ~60-second unexplained delay.
This occurs even though only 486 assets are subsequently identified as new or modified. What operation is consuming this time between asset discovery and the start of the upload.
### Please provide any relevant error logs
_No response_
Contributor guide
Research direction
Start by reproducing the Wrangler asset upload phase with the reported versions and compare timestamps around asset discovery and upload. Trace the operation between “Read 16280 files” and “Starting asset upload,” then verify that the unexplained delay is identified or removed and that the upload still handles the 486 changed assets correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, node.js, typescript
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100