Execute multiple queues locally

@harshil1712 Yes but I have more than one producer. I have use it and it's working but I have two producer. for test purpose I have created one API in both workers to send message in queue but the thing is at a time only one path is getting call another is throwing error of 404 and is depend on the sequence of producer i use in the comman to run workers it is like below in producer-one there is api with endpoint http://host:port/producer-one-test in producer-two there is api with endpoint http://host:port/producer-two-test
case-1: npx wrangler@latest dev -c producer-one/
wrangler.toml -c producer-two/
wrangler.toml -c consumer/wrangler.toml --persist-to .wrangler

http://host:port/producer-one-test - WORKING
http://host:port/producer-two-test - 404
case-1: npx wrangler@latest dev -c producer-one/
wrangler.toml -c producer-two/
wrangler.toml -c consumer/wrangler.toml --persist-to .wrangler

http://host:port/producer-one-test - WORKING
http://host:port/producer-two-test - 404
case-2: npx wrangler@latest dev -c producer-two/
wrangler.toml -c producer-one/
wrangler.toml -c consumer/wrangler.toml --persist-to .wrangler

http://host:port/producer-two-test - WORKING
http://host:port/producer-one-test - 404
case-2: npx wrangler@latest dev -c producer-two/
wrangler.toml -c producer-one/
wrangler.toml -c consumer/wrangler.toml --persist-to .wrangler

http://host:port/producer-two-test - WORKING
http://host:port/producer-one-test - 404
I have some cases where I have more then two producers
2 Replies
harshil1712
harshil17122mo ago
Do both the producers send message to the same Queue? Also, to confirm, they both are still part of the same Worker project?
ByteBeast
ByteBeastOP2mo ago
Yes both producers send message in to same queue. and both worker in same project. in cloude with working but in local it is not

Did you find this page helpful?