Did you check the user guide regarding Queues and Transactions?
I’m thinking you could have something like this: if you want the same Robot that adds the items into the Queue to process them you could have a condition in your workflow: if countQueueItems>=123 then process them. If you want another Robot to do the processing you can have: if countQueueItems>=123 then Start Job(that processes the items).
In Studio with Get Queue Items activity you can retrieve max. 100 items. For more you can make an API request: https://platform.uipath.com/odata/QueueItems?$count=true&$filter=(QueueDefinitionId eq 3)
The processing is based on the first in first out(FIFO) principle. So in certain cases an item can be processed as soon as it is put in the queue, but if others were there before they will be processed first.
I hope it’s more clear now.
Regards,
Viorela