You could make this simpler with `if queue.get('name') == request.queue_name():`