pmx
232
9
Laravel

Count number of items in queue that match specific rules? $10 for solution

Posted 2 years ago by pmx

Evening Folks I have a queue running on redis, I've given the queue a name (campaignMessages). I can count how many items are in the queue with Redis::connection()->llen('queues:myqueue'); problem is the queue contains items from multiple campaigns and I'd like to be able to break out that number by campaign but I can't find a way to do it. I tried giving each campaign it's on queue but they have to be defined in the config file so I can' see how to create them at runtime? Anyone have any pointers please?

I'll send the person who solves this a $10 amazon card

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.