Hi, is there a way to find how many

Hi, is there a way to find how many outstanding items/messages are present in a queue? Especially, to use with pull-workers.
4 Replies
Pranshu Maheshwari
few options: 1. We just added "message_backlog_count" as a field in the response body for HTTP pull consumers (I'm updating the docs for this) 2. You could use the graphql API: https://developers.cloudflare.com/queues/observability/metrics/#get-average-queue-backlog-over-time-period
Cloudflare Docs
Metrics · Cloudflare Queues
You can view the metrics for a Queue on your account via the Cloudflare dashboard ↗. Navigate to Workers > Queues > your Queue and under the Metrics tab you'll be able to view line charts describing the number of messages processed by final outcome, the number of messages in the backlog, and other important indicators.
mihaaai
mihaaai3w ago
@Pranshu Maheshwari any plans for an API-based producer as well?
Pranshu Maheshwari
we want to support sending messages via the rest api eventually, although it isn't on the roadmap right now. what's the use case you have in mind @mihaaai?
mihaaai
mihaaai2w ago
@Pranshu Maheshwari to avoid binding a worker to each queue I want to push to.
Want results from more Discord servers?
Add your server