bynk.queue.duplicate_consumer
Error Two on message handlers, in one context or in two, consume the same queue.
The context's queue entry point picks the handler by the queue's name. Two on message handlers for the same name would leave it with two to run. Merge them into one handler, or move one to a from queue service for another queue. The rule holds across the project too: Cloudflare accepts one consumer Worker per queue, so two contexts consuming one queue, in a [deploy.workers] group or not, could never both deploy. Move the queue to one context; any number of contexts may still send to it.
Example
service worker from queue("jobs") { on message(message: String) -> Effect[QueueResult] { … } on message(message: String) -> Effect[QueueResult] { … } // ✗ `jobs` already has a consumer}
service audit from queue("audit") { on message(message: String) -> Effect[QueueResult] { … } // ✓ a queue of its own}In the Book
See also
- The grammar rule it governs:
queue_handler. - Every code in its category, Queue, on the diagnostic index.
bynk explain bynk.queue.duplicate_consumershows the same from the installed toolchain, without a network.