is there message group like feature in queue ? i.e sqs message group
is there message group like feature in queue ? i.e sqs message group
14 Replies
It would be great to be able to manually pause/resume queues (collect from producers but pause dispatch to consumers) and also to purge queue messages. This help both in development and in production e.g. maintenance/migration, disaster recovery, or when dependent services are experiencing downtime. Queues are good for decoupling services for this very reason, and it's good to be able to intervene in emergencies!
is it possible to consume messages from a queue from a non-worker piece of code? i.e. the way you can consume messages from SQS using their SDK in the language of your choice via polling/fetching?
Cloudflare Docs
Cloudflare Queues - Pull consumers · Cloudflare Queues
A pull-based consumer allows you to pull from a queue over HTTP from any environment and/or programming language outside of Cloudflare Workers. A …
@Hard@Work @HardlyWorkin' Hello, when I use R2 GET data when consumers use R2 GET data, it will cause the queue to complete it directly. I tried to use Try Catch to capture the error, but I found nothing. Is this my configuration file wrong? or a bug ? (And this logic is normal in the normal worker fetch)
you're returning errors rather than throwing them?
:meowthinking:
I am now also having this issue. Was there any workaround other than deploying a new queue and worker?
trying to delete the worker throws "script still in use as a consumer for a queue"
after manually removing the queue triggers, deleting the worker, and redeploying, the issue was fixed. Still annoying that was an issue though
I have try catch at the call, but I did not print the wrong log 🥲
hmm could you share your account ID & queue ID? Both are safe to share here.
yes, 1m
account id: f55b85c8a963663b11036975203c63c0
and all of a sudden im not allowed to access the queues page in the dashboard?
oh it just went through
queue id: d1a94a7c4e4a4c23a6dbc74a8abbad11
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
You could do it with pull based consumers: https://developers.cloudflare.com/queues/configuration/pull-consumers/
Cloudflare Docs
Cloudflare Queues - Pull consumers · Cloudflare Queues
A pull-based consumer allows you to pull from a queue over HTTP from any environment and/or programming language outside of Cloudflare Workers. A …