Skip to content

Queues: Broken locally when using multiple dev commands #9795

Closed
@astanciu

Description

@astanciu

What versions & operating system are you using?

MacOS latest, node 24, wrangler 4.22.0

Please provide a link to a minimal reproduction

https://github.com/astanciu/cf_worker_repro

Describe the Bug

In local development, when I start workers with separate dev commands, I'm unable to successfully send a message from a producer to a queue and have a consumer receive it.

For ex, doing:

# in producer
wrangler dev

# in consumer
wrangler dev

I see no errors in producer, presumably it puts the message on the queue successfully, but don't know how to verify this, I see nothing in the local state.

There is no response from the consumer, the queue() method never gets invoked.

However, if I start both together, using

wrangler dev -c producer/wrangler.jsonc -c consumer.jsonc

...then it works fine.

Please see the full reproduction https://github.com/astanciu/cf_worker_repro

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions