Hi again! Is it possible to test pull

Hi again! Is it possible to test pull consumers locally? I.e. fetch() from some wrangler local dev host rather than api.cloudflare.com/.../queues/../messages/pull. Big thanks!
1 Reply
andyy
andyyOP6mo ago
.. as far as I can tell nothing is supported directly - but it seems relatively straightforward to implement a basic emulator by adding a dev-mode-only queue consumer and ../messages/pull HTTP route to the worker to save and retrieve messages from a global Set within the worker running locally. Curious if there's a better way, but seems this will do the trick for now!
Want results from more Discord servers?
Add your server