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
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.
@Pranshu Maheshwari any plans for an API-based producer as well?
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?
@Pranshu Maheshwari to avoid binding a worker to each queue I want to push to.