Closed helloimalastair closed 3 months ago
The plan is to move to a file based registry in the shortish term. (There may be more significant approach to multi-worker development in the longer term). See https://github.com/cloudflare/workers-sdk/pull/5214 I'll see if we can prioritise landing this before the end of the month.
Thank you, y'all!
Just in case someone will browse this issue, I was still getting same error with wrangler 3.65.1
with and without --x-registry
flag.
My workaround is:
wrangler dev --port=4201 worker1.ts
wait-on tcp:4201 && wrangler dev --port=4202 worker2.ts
Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.60.3
What version of Node are you using?
22.2.0
What operating system and version are you using?
MacOS Sonoma 14.5
Describe the Bug
Observed behavior
When starting multiple
wrangler dev
processes in quick succession(via a tool liketurbo
or similar), the sessions can end up fighting over which of them gets to start the Registry. Others fail with the errorExpected behavior
One of the Dev Sessions should complete, and any others should wait for it to become available before throwing an error.
Steps to reproduce
wrangler dev
on them all simultaneously.Credit to @poacher2k for discovering/reporting this bug on the CF Discord.