Cant Preview Worker using queue in Pages functions
I have a CF Pages project that use a endpoint with Functions to bind form submits to a Queue. This Queue is consumed by a Worker that saves the messages in a D1 DB. And every 2 minutes the same worker get the messages in this D1 DB and send to a external API.
Everything is working just fine. But i cant figure out how to have a Worker preview, or even run the worker locally using this flow, to test before merging to main.
2 Replies
@Santho to my knowledge Queues don't work locally yet. Would suggest setting up a stage or dev version of your worker and Queue, then testing it remotely. I know it's a pain - been using that workaround for months.
@paulc , your suggestion is the only way we could think of to test this flow as well. I was hoping there might be another path we're overlooking, but I don't think there is. Thanks anyway!!